@coras-io/embed 0.1.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 +20 -0
- package/LICENSE +201 -0
- package/NOTICE +8 -0
- package/README.md +51 -0
- package/dist/components/accordion/accordion-item/accordion-item.component.d.ts +9 -0
- package/dist/components/accordion/accordion-item/accordion-item.component.js +44 -0
- package/dist/components/accordion/accordion-item/accordion-item.d.ts +8 -0
- package/dist/components/accordion/accordion-item/accordion-item.js +6 -0
- package/dist/components/accordion/accordion-item/accordion-item.styles.d.ts +2 -0
- package/dist/components/accordion/accordion-item/accordion-item.styles.js +62 -0
- package/dist/components/accordion/accordion.component.d.ts +8 -0
- package/dist/components/accordion/accordion.component.js +31 -0
- package/dist/components/accordion/accordion.d.ts +8 -0
- package/dist/components/accordion/accordion.js +6 -0
- package/dist/components/accordion/accordion.styles.d.ts +2 -0
- package/dist/components/accordion/accordion.styles.js +13 -0
- package/dist/components/alert/alert.component.d.ts +11 -0
- package/dist/components/alert/alert.component.js +59 -0
- package/dist/components/alert/alert.d.ts +8 -0
- package/dist/components/alert/alert.js +6 -0
- package/dist/components/alert/alert.styles.d.ts +2 -0
- package/dist/components/alert/alert.styles.js +158 -0
- package/dist/components/alert/alert.types.d.ts +1 -0
- package/dist/components/alert/alert.types.js +1 -0
- package/dist/components/attraction-card/base/attraction-card.mixin.d.ts +8 -0
- package/dist/components/attraction-card/base/attraction-card.mixin.js +109 -0
- package/dist/components/attraction-card/base/attraction-card.styles.d.ts +2 -0
- package/dist/components/attraction-card/base/attraction-card.styles.js +94 -0
- package/dist/components/attraction-card/base/attraction-card.types.d.ts +24 -0
- package/dist/components/attraction-card/base/attraction-card.types.js +1 -0
- package/dist/components/attraction-card/long/attraction-long-card.component.d.ts +10 -0
- package/dist/components/attraction-card/long/attraction-long-card.component.js +78 -0
- package/dist/components/attraction-card/long/attraction-long-card.d.ts +8 -0
- package/dist/components/attraction-card/long/attraction-long-card.js +6 -0
- package/dist/components/attraction-card/long/attraction-long-card.styles.d.ts +2 -0
- package/dist/components/attraction-card/long/attraction-long-card.styles.js +127 -0
- package/dist/components/attraction-card/short/attraction-short-card.component.d.ts +10 -0
- package/dist/components/attraction-card/short/attraction-short-card.component.js +75 -0
- package/dist/components/attraction-card/short/attraction-short-card.d.ts +8 -0
- package/dist/components/attraction-card/short/attraction-short-card.js +6 -0
- package/dist/components/attraction-card/short/attraction-short-card.styles.d.ts +2 -0
- package/dist/components/attraction-card/short/attraction-short-card.styles.js +66 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.d.ts +10 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.js +43 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.d.ts +8 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.js +6 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.d.ts +2 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.js +23 -0
- package/dist/components/attraction-discovery/attraction-discovery.component.d.ts +10 -0
- package/dist/components/attraction-discovery/attraction-discovery.component.js +52 -0
- package/dist/components/attraction-discovery/attraction-discovery.constants.d.ts +4 -0
- package/dist/components/attraction-discovery/attraction-discovery.constants.js +5 -0
- package/dist/components/attraction-discovery/attraction-discovery.d.ts +8 -0
- package/dist/components/attraction-discovery/attraction-discovery.js +6 -0
- package/dist/components/attraction-discovery/attraction-discovery.styles.d.ts +2 -0
- package/dist/components/attraction-discovery/attraction-discovery.styles.js +193 -0
- package/dist/components/attraction-header/attraction-header.component.d.ts +31 -0
- package/dist/components/attraction-header/attraction-header.component.js +69 -0
- package/dist/components/attraction-header/attraction-header.d.ts +8 -0
- package/dist/components/attraction-header/attraction-header.js +6 -0
- package/dist/components/attraction-header/attraction-header.styles.d.ts +2 -0
- package/dist/components/attraction-header/attraction-header.styles.js +41 -0
- package/dist/components/attraction-header/attraction-header.utils.d.ts +20 -0
- package/dist/components/attraction-header/attraction-header.utils.js +37 -0
- package/dist/components/attraction-option/attraction-option.component.d.ts +11 -0
- package/dist/components/attraction-option/attraction-option.component.js +82 -0
- package/dist/components/attraction-option/attraction-option.d.ts +8 -0
- package/dist/components/attraction-option/attraction-option.js +6 -0
- package/dist/components/attraction-option/attraction-option.styles.d.ts +2 -0
- package/dist/components/attraction-option/attraction-option.styles.js +132 -0
- package/dist/components/basket/basket.component.d.ts +28 -0
- package/dist/components/basket/basket.component.js +162 -0
- package/dist/components/basket/basket.d.ts +8 -0
- package/dist/components/basket/basket.js +6 -0
- package/dist/components/basket/basket.styles.d.ts +2 -0
- package/dist/components/basket/basket.styles.js +196 -0
- package/dist/components/basket-empty/basket-empty.component.d.ts +5 -0
- package/dist/components/basket-empty/basket-empty.component.js +24 -0
- package/dist/components/basket-empty/basket-empty.d.ts +8 -0
- package/dist/components/basket-empty/basket-empty.js +6 -0
- package/dist/components/basket-empty/basket-empty.styles.d.ts +2 -0
- package/dist/components/basket-empty/basket-empty.styles.js +39 -0
- package/dist/components/basket-item/basket-item.component.d.ts +27 -0
- package/dist/components/basket-item/basket-item.component.js +153 -0
- package/dist/components/basket-item/basket-item.d.ts +8 -0
- package/dist/components/basket-item/basket-item.js +6 -0
- package/dist/components/basket-item/basket-item.styles.d.ts +2 -0
- package/dist/components/basket-item/basket-item.styles.js +178 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.component.d.ts +9 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.component.js +57 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.d.ts +8 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.js +6 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.styles.d.ts +2 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.styles.js +59 -0
- package/dist/components/basket-mobile/basket-mobile.component.d.ts +10 -0
- package/dist/components/basket-mobile/basket-mobile.component.js +59 -0
- package/dist/components/basket-mobile/basket-mobile.d.ts +8 -0
- package/dist/components/basket-mobile/basket-mobile.js +6 -0
- package/dist/components/basket-mobile/basket-mobile.styles.d.ts +2 -0
- package/dist/components/basket-mobile/basket-mobile.styles.js +71 -0
- package/dist/components/basket-rewards/basket-rewards.component.d.ts +10 -0
- package/dist/components/basket-rewards/basket-rewards.component.js +52 -0
- package/dist/components/basket-rewards/basket-rewards.d.ts +8 -0
- package/dist/components/basket-rewards/basket-rewards.js +6 -0
- package/dist/components/basket-rewards/basket-rewards.styles.d.ts +2 -0
- package/dist/components/basket-rewards/basket-rewards.styles.js +18 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.component.d.ts +10 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.component.js +17 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.d.ts +8 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.js +6 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.styles.d.ts +2 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.styles.js +16 -0
- package/dist/components/better-carousel/better-carousel.component.d.ts +94 -0
- package/dist/components/better-carousel/better-carousel.component.js +335 -0
- package/dist/components/better-carousel/better-carousel.d.ts +8 -0
- package/dist/components/better-carousel/better-carousel.js +6 -0
- package/dist/components/better-carousel/better-carousel.styles.d.ts +2 -0
- package/dist/components/better-carousel/better-carousel.styles.js +159 -0
- package/dist/components/bottom-drawer/bottom-drawer.component.d.ts +27 -0
- package/dist/components/bottom-drawer/bottom-drawer.component.js +210 -0
- package/dist/components/bottom-drawer/bottom-drawer.d.ts +8 -0
- package/dist/components/bottom-drawer/bottom-drawer.js +6 -0
- package/dist/components/bottom-drawer/bottom-drawer.styles.d.ts +2 -0
- package/dist/components/bottom-drawer/bottom-drawer.styles.js +88 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +6 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.js +35 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.d.ts +8 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.js +6 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.styles.d.ts +2 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.styles.js +48 -0
- package/dist/components/breadcrumbs/breadcrumbs.component.d.ts +6 -0
- package/dist/components/breadcrumbs/breadcrumbs.component.js +28 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +8 -0
- package/dist/components/breadcrumbs/breadcrumbs.js +6 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts +2 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.js +14 -0
- package/dist/components/button/button.component.d.ts +29 -0
- package/dist/components/button/button.component.js +156 -0
- package/dist/components/button/button.constants.d.ts +5 -0
- package/dist/components/button/button.constants.js +11 -0
- package/dist/components/button/button.d.ts +8 -0
- package/dist/components/button/button.js +6 -0
- package/dist/components/button/button.styles.d.ts +2 -0
- package/dist/components/button/button.styles.js +356 -0
- package/dist/components/calendar/base/calendar.mixin.d.ts +3 -0
- package/dist/components/calendar/base/calendar.mixin.js +231 -0
- package/dist/components/calendar/base/calendar.styles.d.ts +2 -0
- package/dist/components/calendar/base/calendar.styles.js +122 -0
- package/dist/components/calendar/base/calendar.types.d.ts +21 -0
- package/dist/components/calendar/base/calendar.types.js +1 -0
- package/dist/components/calendar/dual/dual.component.d.ts +11 -0
- package/dist/components/calendar/dual/dual.component.js +93 -0
- package/dist/components/calendar/dual/dual.d.ts +8 -0
- package/dist/components/calendar/dual/dual.js +6 -0
- package/dist/components/calendar/dual/dual.styles.d.ts +2 -0
- package/dist/components/calendar/dual/dual.styles.js +13 -0
- package/dist/components/calendar/month/month.component.d.ts +14 -0
- package/dist/components/calendar/month/month.component.js +83 -0
- package/dist/components/calendar/month/month.d.ts +8 -0
- package/dist/components/calendar/month/month.js +6 -0
- package/dist/components/calendar/month/month.styles.d.ts +2 -0
- package/dist/components/calendar/month/month.styles.js +5 -0
- package/dist/components/calendar/multi/multi.component.d.ts +9 -0
- package/dist/components/calendar/multi/multi.component.js +59 -0
- package/dist/components/calendar/multi/multi.d.ts +8 -0
- package/dist/components/calendar/multi/multi.js +6 -0
- package/dist/components/calendar/multi/multi.styles.d.ts +2 -0
- package/dist/components/calendar/multi/multi.styles.js +23 -0
- package/dist/components/carousel/carousel-item/carousel-item.component.d.ts +18 -0
- package/dist/components/carousel/carousel-item/carousel-item.component.js +84 -0
- package/dist/components/carousel/carousel-item/carousel-item.constants.d.ts +4 -0
- package/dist/components/carousel/carousel-item/carousel-item.constants.js +5 -0
- package/dist/components/carousel/carousel-item/carousel-item.d.ts +8 -0
- package/dist/components/carousel/carousel-item/carousel-item.js +6 -0
- package/dist/components/carousel/carousel-item/carousel-item.styles.d.ts +2 -0
- package/dist/components/carousel/carousel-item/carousel-item.styles.js +86 -0
- package/dist/components/carousel/carousel.component.d.ts +24 -0
- package/dist/components/carousel/carousel.component.js +132 -0
- package/dist/components/carousel/carousel.d.ts +8 -0
- package/dist/components/carousel/carousel.js +6 -0
- package/dist/components/carousel/carousel.styles.d.ts +2 -0
- package/dist/components/carousel/carousel.styles.js +72 -0
- package/dist/components/categories-tree/categories-tree.component.d.ts +15 -0
- package/dist/components/categories-tree/categories-tree.component.js +202 -0
- package/dist/components/categories-tree/categories-tree.d.ts +8 -0
- package/dist/components/categories-tree/categories-tree.js +6 -0
- package/dist/components/categories-tree/categories-tree.styles.d.ts +2 -0
- package/dist/components/categories-tree/categories-tree.styles.js +14 -0
- package/dist/components/category-tag/category-tag.component.d.ts +12 -0
- package/dist/components/category-tag/category-tag.component.js +78 -0
- package/dist/components/category-tag/category-tag.d.ts +8 -0
- package/dist/components/category-tag/category-tag.js +6 -0
- package/dist/components/category-tag/category-tag.styles.d.ts +2 -0
- package/dist/components/category-tag/category-tag.styles.js +99 -0
- package/dist/components/category-tag/category-tag.types.d.ts +8 -0
- package/dist/components/category-tag/category-tag.types.js +1 -0
- package/dist/components/checkbox/checkbox.component.d.ts +13 -0
- package/dist/components/checkbox/checkbox.component.js +68 -0
- package/dist/components/checkbox/checkbox.constants.d.ts +5 -0
- package/dist/components/checkbox/checkbox.constants.js +6 -0
- package/dist/components/checkbox/checkbox.d.ts +8 -0
- package/dist/components/checkbox/checkbox.js +6 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +2 -0
- package/dist/components/checkbox/checkbox.styles.js +129 -0
- package/dist/components/checkbox-group/checkbox-group.component.d.ts +6 -0
- package/dist/components/checkbox-group/checkbox-group.component.js +14 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
- package/dist/components/checkbox-group/checkbox-group.js +6 -0
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts +2 -0
- package/dist/components/checkbox-group/checkbox-group.styles.js +40 -0
- package/dist/components/checkbox-group/checkbox-group.types.d.ts +12 -0
- package/dist/components/checkbox-group/checkbox-group.types.js +1 -0
- package/dist/components/chip/chip.component.d.ts +11 -0
- package/dist/components/chip/chip.component.js +53 -0
- package/dist/components/chip/chip.constants.d.ts +1 -0
- package/dist/components/chip/chip.constants.js +1 -0
- package/dist/components/chip/chip.d.ts +8 -0
- package/dist/components/chip/chip.js +6 -0
- package/dist/components/chip/chip.styles.d.ts +2 -0
- package/dist/components/chip/chip.styles.js +103 -0
- package/dist/components/collect-fida/collect-fida.component.d.ts +11 -0
- package/dist/components/collect-fida/collect-fida.component.js +75 -0
- package/dist/components/collect-fida/collect-fida.d.ts +8 -0
- package/dist/components/collect-fida/collect-fida.js +6 -0
- package/dist/components/collect-fida/collect-fida.styles.d.ts +2 -0
- package/dist/components/collect-fida/collect-fida.styles.js +95 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.component.d.ts +162 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.component.js +570 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.d.ts +8 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.js +6 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.styles.d.ts +2 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.styles.js +141 -0
- package/dist/components/currencies-list/currencies-list.component.d.ts +15 -0
- package/dist/components/currencies-list/currencies-list.component.js +50 -0
- package/dist/components/currencies-list/currencies-list.d.ts +8 -0
- package/dist/components/currencies-list/currencies-list.js +6 -0
- package/dist/components/currencies-list/currencies-list.styles.d.ts +2 -0
- package/dist/components/currencies-list/currencies-list.styles.js +5 -0
- package/dist/components/dialog/dialog.component.d.ts +69 -0
- package/dist/components/dialog/dialog.component.js +373 -0
- package/dist/components/dialog/dialog.d.ts +8 -0
- package/dist/components/dialog/dialog.js +6 -0
- package/dist/components/dialog/dialog.styles.d.ts +2 -0
- package/dist/components/dialog/dialog.styles.js +264 -0
- package/dist/components/drawer/drawer.component.d.ts +12 -0
- package/dist/components/drawer/drawer.component.js +89 -0
- package/dist/components/drawer/drawer.d.ts +8 -0
- package/dist/components/drawer/drawer.js +6 -0
- package/dist/components/drawer/drawer.styles.d.ts +2 -0
- package/dist/components/drawer/drawer.styles.js +129 -0
- package/dist/components/dropdown/dropdown.component.d.ts +25 -0
- package/dist/components/dropdown/dropdown.component.js +204 -0
- package/dist/components/dropdown/dropdown.d.ts +8 -0
- package/dist/components/dropdown/dropdown.js +6 -0
- package/dist/components/dropdown/dropdown.styles.d.ts +2 -0
- package/dist/components/dropdown/dropdown.styles.js +60 -0
- package/dist/components/expiration-timer/expiration-timer.component.d.ts +12 -0
- package/dist/components/expiration-timer/expiration-timer.component.js +52 -0
- package/dist/components/expiration-timer/expiration-timer.d.ts +8 -0
- package/dist/components/expiration-timer/expiration-timer.js +6 -0
- package/dist/components/expiration-timer/expiration-timer.styles.d.ts +2 -0
- package/dist/components/expiration-timer/expiration-timer.styles.js +37 -0
- package/dist/components/explore-card/explore-card.component.d.ts +11 -0
- package/dist/components/explore-card/explore-card.component.js +48 -0
- package/dist/components/explore-card/explore-card.constants.d.ts +4 -0
- package/dist/components/explore-card/explore-card.constants.js +5 -0
- package/dist/components/explore-card/explore-card.d.ts +8 -0
- package/dist/components/explore-card/explore-card.js +6 -0
- package/dist/components/explore-card/explore-card.styles.d.ts +2 -0
- package/dist/components/explore-card/explore-card.styles.js +71 -0
- package/dist/components/filter-chip/filter-chip.component.d.ts +12 -0
- package/dist/components/filter-chip/filter-chip.component.js +68 -0
- package/dist/components/filter-chip/filter-chip.constants.d.ts +2 -0
- package/dist/components/filter-chip/filter-chip.constants.js +2 -0
- package/dist/components/filter-chip/filter-chip.d.ts +8 -0
- package/dist/components/filter-chip/filter-chip.js +6 -0
- package/dist/components/filter-chip/filter-chip.styles.d.ts +2 -0
- package/dist/components/filter-chip/filter-chip.styles.js +160 -0
- package/dist/components/filters-drawer/filters-drawer.component.d.ts +9 -0
- package/dist/components/filters-drawer/filters-drawer.component.js +55 -0
- package/dist/components/filters-drawer/filters-drawer.d.ts +8 -0
- package/dist/components/filters-drawer/filters-drawer.js +6 -0
- package/dist/components/filters-drawer/filters-drawer.styles.d.ts +2 -0
- package/dist/components/filters-drawer/filters-drawer.styles.js +60 -0
- package/dist/components/flag-icon/flag-icon.component.d.ts +9 -0
- package/dist/components/flag-icon/flag-icon.component.js +45 -0
- package/dist/components/flag-icon/flag-icon.constants.d.ts +1 -0
- package/dist/components/flag-icon/flag-icon.constants.js +371 -0
- package/dist/components/flag-icon/flag-icon.d.ts +8 -0
- package/dist/components/flag-icon/flag-icon.js +6 -0
- package/dist/components/flag-icon/flag-icon.styles.d.ts +2 -0
- package/dist/components/flag-icon/flag-icon.styles.js +16 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.component.d.ts +8 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.component.js +40 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.d.ts +8 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.js +6 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.styles.d.ts +2 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.styles.js +55 -0
- package/dist/components/footer-menu/footer-menu.component.d.ts +5 -0
- package/dist/components/footer-menu/footer-menu.component.js +17 -0
- package/dist/components/footer-menu/footer-menu.d.ts +8 -0
- package/dist/components/footer-menu/footer-menu.js +6 -0
- package/dist/components/footer-menu/footer-menu.styles.d.ts +2 -0
- package/dist/components/footer-menu/footer-menu.styles.js +47 -0
- package/dist/components/icon/icon.component.d.ts +14 -0
- package/dist/components/icon/icon.component.js +104 -0
- package/dist/components/icon/icon.d.ts +8 -0
- package/dist/components/icon/icon.js +6 -0
- package/dist/components/icon/icon.styles.d.ts +2 -0
- package/dist/components/icon/icon.styles.js +43 -0
- package/dist/components/icon/icon.types.d.ts +2 -0
- package/dist/components/icon/icon.types.js +1 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.component.d.ts +8 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.component.js +42 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.d.ts +8 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.js +6 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.styles.d.ts +2 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.styles.js +23 -0
- package/dist/components/icon-list/icon-list.component.d.ts +5 -0
- package/dist/components/icon-list/icon-list.component.js +12 -0
- package/dist/components/icon-list/icon-list.d.ts +8 -0
- package/dist/components/icon-list/icon-list.js +6 -0
- package/dist/components/icon-list/icon-list.styles.d.ts +2 -0
- package/dist/components/icon-list/icon-list.styles.js +15 -0
- package/dist/components/image/image.component.d.ts +83 -0
- package/dist/components/image/image.component.js +301 -0
- package/dist/components/image/image.d.ts +8 -0
- package/dist/components/image/image.js +6 -0
- package/dist/components/image/image.styles.d.ts +2 -0
- package/dist/components/image/image.styles.js +88 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.d.ts +10 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.js +43 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.d.ts +8 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.js +6 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.d.ts +2 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.js +28 -0
- package/dist/components/image-carousel/image-carousel.component.d.ts +8 -0
- package/dist/components/image-carousel/image-carousel.component.js +36 -0
- package/dist/components/image-carousel/image-carousel.d.ts +8 -0
- package/dist/components/image-carousel/image-carousel.js +6 -0
- package/dist/components/image-carousel/image-carousel.styles.d.ts +2 -0
- package/dist/components/image-carousel/image-carousel.styles.js +72 -0
- package/dist/components/image-chip/image-chip.component.d.ts +8 -0
- package/dist/components/image-chip/image-chip.component.js +33 -0
- package/dist/components/image-chip/image-chip.d.ts +8 -0
- package/dist/components/image-chip/image-chip.js +6 -0
- package/dist/components/image-chip/image-chip.styles.d.ts +2 -0
- package/dist/components/image-chip/image-chip.styles.js +43 -0
- package/dist/components/image-viewer/image-viewer.component.d.ts +49 -0
- package/dist/components/image-viewer/image-viewer.component.js +193 -0
- package/dist/components/image-viewer/image-viewer.d.ts +8 -0
- package/dist/components/image-viewer/image-viewer.js +6 -0
- package/dist/components/image-viewer/image-viewer.styles.d.ts +2 -0
- package/dist/components/image-viewer/image-viewer.styles.js +146 -0
- package/dist/components/input-field/input-field.component.d.ts +54 -0
- package/dist/components/input-field/input-field.component.js +331 -0
- package/dist/components/input-field/input-field.d.ts +8 -0
- package/dist/components/input-field/input-field.js +6 -0
- package/dist/components/input-field/input-field.styles.d.ts +2 -0
- package/dist/components/input-field/input-field.styles.js +274 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.component.d.ts +9 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.component.js +45 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.d.ts +8 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.js +6 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.styles.d.ts +2 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.styles.js +70 -0
- package/dist/components/itinerary/itinerary.component.d.ts +7 -0
- package/dist/components/itinerary/itinerary.component.js +23 -0
- package/dist/components/itinerary/itinerary.d.ts +8 -0
- package/dist/components/itinerary/itinerary.js +6 -0
- package/dist/components/itinerary/itinerary.styles.d.ts +2 -0
- package/dist/components/itinerary/itinerary.styles.js +15 -0
- package/dist/components/joined-fields/joined-fields.component.d.ts +16 -0
- package/dist/components/joined-fields/joined-fields.component.js +93 -0
- package/dist/components/joined-fields/joined-fields.d.ts +8 -0
- package/dist/components/joined-fields/joined-fields.js +6 -0
- package/dist/components/joined-fields/joined-fields.styles.d.ts +2 -0
- package/dist/components/joined-fields/joined-fields.styles.js +101 -0
- package/dist/components/layout/layout.component.d.ts +10 -0
- package/dist/components/layout/layout.component.js +34 -0
- package/dist/components/layout/layout.d.ts +8 -0
- package/dist/components/layout/layout.js +6 -0
- package/dist/components/layout/layout.styles.d.ts +2 -0
- package/dist/components/layout/layout.styles.js +31 -0
- package/dist/components/list/list-item/list-item.component.d.ts +9 -0
- package/dist/components/list/list-item/list-item.component.js +30 -0
- package/dist/components/list/list-item/list-item.d.ts +8 -0
- package/dist/components/list/list-item/list-item.js +6 -0
- package/dist/components/list/list-item/list-item.styles.d.ts +2 -0
- package/dist/components/list/list-item/list-item.styles.js +34 -0
- package/dist/components/list/list.component.d.ts +6 -0
- package/dist/components/list/list.component.js +25 -0
- package/dist/components/list/list.d.ts +8 -0
- package/dist/components/list/list.js +6 -0
- package/dist/components/list/list.styles.d.ts +2 -0
- package/dist/components/list/list.styles.js +24 -0
- package/dist/components/loading-spinner/loading-spinner.component.d.ts +7 -0
- package/dist/components/loading-spinner/loading-spinner.component.js +22 -0
- package/dist/components/loading-spinner/loading-spinner.d.ts +8 -0
- package/dist/components/loading-spinner/loading-spinner.js +6 -0
- package/dist/components/loading-spinner/loading-spinner.styles.d.ts +2 -0
- package/dist/components/loading-spinner/loading-spinner.styles.js +47 -0
- package/dist/components/loading-spinner/loading-spinner.types.d.ts +1 -0
- package/dist/components/loading-spinner/loading-spinner.types.js +1 -0
- package/dist/components/locales-list/locales-list.component.d.ts +17 -0
- package/dist/components/locales-list/locales-list.component.js +55 -0
- package/dist/components/locales-list/locales-list.constants.d.ts +2 -0
- package/dist/components/locales-list/locales-list.constants.js +370 -0
- package/dist/components/locales-list/locales-list.d.ts +8 -0
- package/dist/components/locales-list/locales-list.js +6 -0
- package/dist/components/locales-list/locales-list.styles.d.ts +2 -0
- package/dist/components/locales-list/locales-list.styles.js +5 -0
- package/dist/components/location-image/location-image.component.d.ts +29 -0
- package/dist/components/location-image/location-image.component.js +135 -0
- package/dist/components/location-image/location-image.d.ts +8 -0
- package/dist/components/location-image/location-image.js +6 -0
- package/dist/components/location-image/location-image.styles.d.ts +2 -0
- package/dist/components/location-image/location-image.styles.js +49 -0
- package/dist/components/locations-results/locations-results.component.d.ts +21 -0
- package/dist/components/locations-results/locations-results.component.js +83 -0
- package/dist/components/locations-results/locations-results.d.ts +8 -0
- package/dist/components/locations-results/locations-results.js +6 -0
- package/dist/components/locations-results/locations-results.styles.d.ts +2 -0
- package/dist/components/locations-results/locations-results.styles.js +64 -0
- package/dist/components/marketing-tag/marketing-tag.component.d.ts +5 -0
- package/dist/components/marketing-tag/marketing-tag.component.js +8 -0
- package/dist/components/marketing-tag/marketing-tag.d.ts +8 -0
- package/dist/components/marketing-tag/marketing-tag.js +6 -0
- package/dist/components/marketing-tag/marketing-tag.styles.d.ts +2 -0
- package/dist/components/marketing-tag/marketing-tag.styles.js +36 -0
- package/dist/components/message-card/message-card.component.d.ts +12 -0
- package/dist/components/message-card/message-card.component.js +56 -0
- package/dist/components/message-card/message-card.d.ts +8 -0
- package/dist/components/message-card/message-card.js +6 -0
- package/dist/components/message-card/message-card.styles.d.ts +2 -0
- package/dist/components/message-card/message-card.styles.js +72 -0
- package/dist/components/message-card/message-card.types.d.ts +1 -0
- package/dist/components/message-card/message-card.types.js +1 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.component.d.ts +9 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.component.js +43 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.d.ts +8 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.js +6 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.styles.d.ts +2 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.styles.js +46 -0
- package/dist/components/option-group/option-chip/option-chip.component.d.ts +7 -0
- package/dist/components/option-group/option-chip/option-chip.component.js +35 -0
- package/dist/components/option-group/option-chip/option-chip.d.ts +8 -0
- package/dist/components/option-group/option-chip/option-chip.js +6 -0
- package/dist/components/option-group/option-chip/option-chip.styles.d.ts +2 -0
- package/dist/components/option-group/option-chip/option-chip.styles.js +45 -0
- package/dist/components/option-group/option-group.component.d.ts +6 -0
- package/dist/components/option-group/option-group.component.js +31 -0
- package/dist/components/option-group/option-group.d.ts +8 -0
- package/dist/components/option-group/option-group.js +6 -0
- package/dist/components/option-group/option-group.styles.d.ts +2 -0
- package/dist/components/option-group/option-group.styles.js +30 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.component.d.ts +11 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.component.js +81 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.d.ts +8 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.js +6 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.styles.d.ts +2 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.styles.js +107 -0
- package/dist/components/order-confirmation/order-confirmation.component.d.ts +12 -0
- package/dist/components/order-confirmation/order-confirmation.component.js +72 -0
- package/dist/components/order-confirmation/order-confirmation.d.ts +8 -0
- package/dist/components/order-confirmation/order-confirmation.js +6 -0
- package/dist/components/order-confirmation/order-confirmation.styles.d.ts +2 -0
- package/dist/components/order-confirmation/order-confirmation.styles.js +102 -0
- package/dist/components/otp/otp.component.d.ts +24 -0
- package/dist/components/otp/otp.component.js +148 -0
- package/dist/components/otp/otp.d.ts +8 -0
- package/dist/components/otp/otp.js +6 -0
- package/dist/components/otp/otp.styles.d.ts +2 -0
- package/dist/components/otp/otp.styles.js +87 -0
- package/dist/components/otp/otp.utils.d.ts +9 -0
- package/dist/components/otp/otp.utils.js +26 -0
- package/dist/components/overlay/overlay.component.d.ts +13 -0
- package/dist/components/overlay/overlay.component.js +52 -0
- package/dist/components/overlay/overlay.d.ts +8 -0
- package/dist/components/overlay/overlay.js +6 -0
- package/dist/components/overlay/overlay.styles.d.ts +2 -0
- package/dist/components/overlay/overlay.styles.js +39 -0
- package/dist/components/pay-in/pay-in.component.d.ts +10 -0
- package/dist/components/pay-in/pay-in.component.js +52 -0
- package/dist/components/pay-in/pay-in.d.ts +8 -0
- package/dist/components/pay-in/pay-in.js +6 -0
- package/dist/components/pay-in/pay-in.styles.d.ts +2 -0
- package/dist/components/pay-in/pay-in.styles.js +58 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.component.d.ts +16 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.component.js +63 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.d.ts +8 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.js +6 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.styles.d.ts +2 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.styles.js +38 -0
- package/dist/components/payment-option/payment-option.component.d.ts +38 -0
- package/dist/components/payment-option/payment-option.component.js +131 -0
- package/dist/components/payment-option/payment-option.d.ts +8 -0
- package/dist/components/payment-option/payment-option.js +6 -0
- package/dist/components/payment-option/payment-option.styles.d.ts +2 -0
- package/dist/components/payment-option/payment-option.styles.js +206 -0
- package/dist/components/performance-time/performance-time.component.d.ts +9 -0
- package/dist/components/performance-time/performance-time.component.js +47 -0
- package/dist/components/performance-time/performance-time.d.ts +8 -0
- package/dist/components/performance-time/performance-time.js +6 -0
- package/dist/components/performance-time/performance-time.styles.d.ts +2 -0
- package/dist/components/performance-time/performance-time.styles.js +53 -0
- package/dist/components/phone-country-code/phone-country-code.component.d.ts +13 -0
- package/dist/components/phone-country-code/phone-country-code.component.js +53 -0
- package/dist/components/phone-country-code/phone-country-code.d.ts +8 -0
- package/dist/components/phone-country-code/phone-country-code.js +6 -0
- package/dist/components/phone-country-code/phone-country-code.styles.d.ts +2 -0
- package/dist/components/phone-country-code/phone-country-code.styles.js +44 -0
- package/dist/components/phone-country-codes/phone-country-codes.component.d.ts +11 -0
- package/dist/components/phone-country-codes/phone-country-codes.component.js +47 -0
- package/dist/components/phone-country-codes/phone-country-codes.d.ts +8 -0
- package/dist/components/phone-country-codes/phone-country-codes.js +6 -0
- package/dist/components/phone-country-codes/phone-country-codes.styles.d.ts +2 -0
- package/dist/components/phone-country-codes/phone-country-codes.styles.js +21 -0
- package/dist/components/phone-field/phone-field.component.d.ts +53 -0
- package/dist/components/phone-field/phone-field.component.js +200 -0
- package/dist/components/phone-field/phone-field.d.ts +9 -0
- package/dist/components/phone-field/phone-field.js +7 -0
- package/dist/components/phone-field/phone-field.styles.d.ts +2 -0
- package/dist/components/phone-field/phone-field.styles.js +41 -0
- package/dist/components/phone-field/phone-field.types.d.ts +5 -0
- package/dist/components/phone-field/phone-field.types.js +1 -0
- package/dist/components/phone-field/phone-field.utils.d.ts +2 -0
- package/dist/components/phone-field/phone-field.utils.js +7 -0
- package/dist/components/points/points.component.d.ts +9 -0
- package/dist/components/points/points.component.js +36 -0
- package/dist/components/points/points.d.ts +8 -0
- package/dist/components/points/points.js +6 -0
- package/dist/components/points/points.styles.d.ts +2 -0
- package/dist/components/points/points.styles.js +47 -0
- package/dist/components/price/price.component.d.ts +12 -0
- package/dist/components/price/price.component.js +38 -0
- package/dist/components/price/price.d.ts +8 -0
- package/dist/components/price/price.js +6 -0
- package/dist/components/reservation-preview/reservation-preview.component.d.ts +11 -0
- package/dist/components/reservation-preview/reservation-preview.component.js +84 -0
- package/dist/components/reservation-preview/reservation-preview.d.ts +8 -0
- package/dist/components/reservation-preview/reservation-preview.js +6 -0
- package/dist/components/reservation-preview/reservation-preview.styles.d.ts +2 -0
- package/dist/components/reservation-preview/reservation-preview.styles.js +190 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.component.d.ts +7 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.component.js +36 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.d.ts +8 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.js +6 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.styles.d.ts +2 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.styles.js +70 -0
- package/dist/components/reviews/review/review.component.d.ts +9 -0
- package/dist/components/reviews/review/review.component.js +41 -0
- package/dist/components/reviews/review/review.d.ts +8 -0
- package/dist/components/reviews/review/review.js +6 -0
- package/dist/components/reviews/review/review.styles.d.ts +2 -0
- package/dist/components/reviews/review/review.styles.js +45 -0
- package/dist/components/reviews/reviews.component.d.ts +9 -0
- package/dist/components/reviews/reviews.component.js +56 -0
- package/dist/components/reviews/reviews.d.ts +8 -0
- package/dist/components/reviews/reviews.js +6 -0
- package/dist/components/reviews/reviews.styles.d.ts +2 -0
- package/dist/components/reviews/reviews.styles.js +73 -0
- package/dist/components/search-button/search-button.component.d.ts +8 -0
- package/dist/components/search-button/search-button.component.js +37 -0
- package/dist/components/search-button/search-button.d.ts +8 -0
- package/dist/components/search-button/search-button.js +6 -0
- package/dist/components/search-button/search-button.styles.d.ts +2 -0
- package/dist/components/search-button/search-button.styles.js +61 -0
- package/dist/components/search-results-item/search-results-item.d.ts +13 -0
- package/dist/components/search-results-item/search-results-item.js +26 -0
- package/dist/components/seated-selector/seated-selector.component.d.ts +42 -0
- package/dist/components/seated-selector/seated-selector.component.js +321 -0
- package/dist/components/seated-selector/seated-selector.d.ts +8 -0
- package/dist/components/seated-selector/seated-selector.js +6 -0
- package/dist/components/seated-selector/seated-selector.styles.d.ts +2 -0
- package/dist/components/seated-selector/seated-selector.styles.js +84 -0
- package/dist/components/seats-io/seats-io.component.d.ts +27 -0
- package/dist/components/seats-io/seats-io.component.js +162 -0
- package/dist/components/seats-io/seats-io.constants.d.ts +12 -0
- package/dist/components/seats-io/seats-io.constants.js +23 -0
- package/dist/components/seats-io/seats-io.d.ts +8 -0
- package/dist/components/seats-io/seats-io.js +6 -0
- package/dist/components/seats-io/seats-io.styles.d.ts +2 -0
- package/dist/components/seats-io/seats-io.styles.js +15 -0
- package/dist/components/seats-io/seats-io.transform.d.ts +77 -0
- package/dist/components/seats-io/seats-io.transform.js +152 -0
- package/dist/components/select-list/select-list.component.d.ts +19 -0
- package/dist/components/select-list/select-list.component.js +160 -0
- package/dist/components/select-list/select-list.d.ts +8 -0
- package/dist/components/select-list/select-list.js +6 -0
- package/dist/components/select-list/select-list.styles.d.ts +2 -0
- package/dist/components/select-list/select-list.styles.js +46 -0
- package/dist/components/select-list/select-option/select-option.component.d.ts +7 -0
- package/dist/components/select-list/select-option/select-option.component.js +28 -0
- package/dist/components/select-list/select-option/select-option.d.ts +8 -0
- package/dist/components/select-list/select-option/select-option.js +6 -0
- package/dist/components/select-list/select-option/select-option.styles.d.ts +2 -0
- package/dist/components/select-list/select-option/select-option.styles.js +52 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.component.d.ts +10 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.component.js +51 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.d.ts +8 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.js +6 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.d.ts +2 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.js +89 -0
- package/dist/components/sort-dropdown/sort-dropdown.component.d.ts +14 -0
- package/dist/components/sort-dropdown/sort-dropdown.component.js +57 -0
- package/dist/components/sort-dropdown/sort-dropdown.d.ts +8 -0
- package/dist/components/sort-dropdown/sort-dropdown.js +6 -0
- package/dist/components/sort-dropdown/sort-dropdown.styles.d.ts +2 -0
- package/dist/components/sort-dropdown/sort-dropdown.styles.js +22 -0
- package/dist/components/sort-list/sort-list.component.d.ts +7 -0
- package/dist/components/sort-list/sort-list.component.js +25 -0
- package/dist/components/sort-list/sort-list.d.ts +8 -0
- package/dist/components/sort-list/sort-list.js +6 -0
- package/dist/components/sort-list/sort-list.styles.d.ts +2 -0
- package/dist/components/sort-list/sort-list.styles.js +17 -0
- package/dist/components/sport-options/sport-option/sport-option.component.d.ts +10 -0
- package/dist/components/sport-options/sport-option/sport-option.component.js +57 -0
- package/dist/components/sport-options/sport-option/sport-option.d.ts +8 -0
- package/dist/components/sport-options/sport-option/sport-option.js +6 -0
- package/dist/components/sport-options/sport-option/sport-option.styles.d.ts +2 -0
- package/dist/components/sport-options/sport-option/sport-option.styles.js +156 -0
- package/dist/components/sport-options/sport-options.component.d.ts +6 -0
- package/dist/components/sport-options/sport-options.component.js +27 -0
- package/dist/components/sport-options/sport-options.d.ts +8 -0
- package/dist/components/sport-options/sport-options.js +6 -0
- package/dist/components/sport-options/sport-options.styles.d.ts +2 -0
- package/dist/components/sport-options/sport-options.styles.js +33 -0
- package/dist/components/star-rating/star-rating.component.d.ts +15 -0
- package/dist/components/star-rating/star-rating.component.js +77 -0
- package/dist/components/star-rating/star-rating.d.ts +8 -0
- package/dist/components/star-rating/star-rating.js +6 -0
- package/dist/components/star-rating/star-rating.styles.d.ts +2 -0
- package/dist/components/star-rating/star-rating.styles.js +49 -0
- package/dist/components/tab/tab.component.d.ts +12 -0
- package/dist/components/tab/tab.component.js +52 -0
- package/dist/components/tab/tab.constants.d.ts +4 -0
- package/dist/components/tab/tab.constants.js +5 -0
- package/dist/components/tab/tab.d.ts +8 -0
- package/dist/components/tab/tab.js +6 -0
- package/dist/components/tab/tab.styles.d.ts +2 -0
- package/dist/components/tab/tab.styles.js +50 -0
- package/dist/components/tab-panel/tab-panel.component.d.ts +9 -0
- package/dist/components/tab-panel/tab-panel.component.js +35 -0
- package/dist/components/tab-panel/tab-panel.d.ts +8 -0
- package/dist/components/tab-panel/tab-panel.js +6 -0
- package/dist/components/tab-panel/tab-panel.styles.d.ts +2 -0
- package/dist/components/tab-panel/tab-panel.styles.js +23 -0
- package/dist/components/tabs/tabs.component.d.ts +19 -0
- package/dist/components/tabs/tabs.component.js +87 -0
- package/dist/components/tabs/tabs.d.ts +8 -0
- package/dist/components/tabs/tabs.js +6 -0
- package/dist/components/tabs/tabs.styles.d.ts +2 -0
- package/dist/components/tabs/tabs.styles.js +32 -0
- package/dist/components/tag/tag.component.d.ts +8 -0
- package/dist/components/tag/tag.component.js +33 -0
- package/dist/components/tag/tag.constants.d.ts +1 -0
- package/dist/components/tag/tag.constants.js +1 -0
- package/dist/components/tag/tag.d.ts +8 -0
- package/dist/components/tag/tag.js +6 -0
- package/dist/components/tag/tag.styles.d.ts +2 -0
- package/dist/components/tag/tag.styles.js +56 -0
- package/dist/components/text-section/text-section.component.d.ts +6 -0
- package/dist/components/text-section/text-section.component.js +31 -0
- package/dist/components/text-section/text-section.d.ts +8 -0
- package/dist/components/text-section/text-section.js +6 -0
- package/dist/components/text-section/text-section.styles.d.ts +2 -0
- package/dist/components/text-section/text-section.styles.js +94 -0
- package/dist/components/time-tag/time-tag.component.d.ts +14 -0
- package/dist/components/time-tag/time-tag.component.js +58 -0
- package/dist/components/time-tag/time-tag.d.ts +8 -0
- package/dist/components/time-tag/time-tag.js +6 -0
- package/dist/components/time-tag/time-tag.styles.d.ts +2 -0
- package/dist/components/time-tag/time-tag.styles.js +41 -0
- package/dist/components/tooltip/tooltip.component.d.ts +19 -0
- package/dist/components/tooltip/tooltip.component.js +124 -0
- package/dist/components/tooltip/tooltip.d.ts +8 -0
- package/dist/components/tooltip/tooltip.js +6 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +2 -0
- package/dist/components/tooltip/tooltip.styles.js +79 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.component.d.ts +9 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.component.js +36 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.d.ts +8 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.js +6 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.styles.d.ts +2 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.styles.js +35 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.component.d.ts +9 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.component.js +47 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.d.ts +8 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.js +6 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.styles.d.ts +2 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.styles.js +78 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.component.d.ts +13 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.component.js +74 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.d.ts +8 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.js +6 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.styles.d.ts +2 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.styles.js +40 -0
- package/dist/components/transfer-modal/transfer-modal.component.d.ts +72 -0
- package/dist/components/transfer-modal/transfer-modal.component.js +297 -0
- package/dist/components/transfer-modal/transfer-modal.d.ts +8 -0
- package/dist/components/transfer-modal/transfer-modal.js +6 -0
- package/dist/components/transfer-modal/transfer-modal.styles.d.ts +2 -0
- package/dist/components/transfer-modal/transfer-modal.styles.js +141 -0
- package/dist/containers/basket/basket.component.d.ts +25 -0
- package/dist/containers/basket/basket.component.js +257 -0
- package/dist/containers/basket/basket.d.ts +8 -0
- package/dist/containers/basket/basket.js +6 -0
- package/dist/containers/footer/footer.component.d.ts +8 -0
- package/dist/containers/footer/footer.component.js +65 -0
- package/dist/containers/footer/footer.d.ts +8 -0
- package/dist/containers/footer/footer.js +6 -0
- package/dist/containers/footer/footer.styles.d.ts +2 -0
- package/dist/containers/footer/footer.styles.js +31 -0
- package/dist/containers/navbar/navbar.component.d.ts +102 -0
- package/dist/containers/navbar/navbar.component.js +727 -0
- package/dist/containers/navbar/navbar.d.ts +8 -0
- package/dist/containers/navbar/navbar.js +6 -0
- package/dist/containers/navbar/navbar.styles.d.ts +2 -0
- package/dist/containers/navbar/navbar.styles.js +257 -0
- package/dist/containers/navbar/navbar.utils.d.ts +12 -0
- package/dist/containers/navbar/navbar.utils.js +40 -0
- package/dist/contexts/basket/basket.context.d.ts +4 -0
- package/dist/contexts/basket/basket.context.js +2 -0
- package/dist/contexts/basket/basket.d.ts +8 -0
- package/dist/contexts/basket/basket.js +6 -0
- package/dist/contexts/basket/basket.provider.d.ts +30 -0
- package/dist/contexts/basket/basket.provider.js +218 -0
- package/dist/contexts/basket/basket.styles.d.ts +2 -0
- package/dist/contexts/basket/basket.styles.js +9 -0
- package/dist/contexts/basket/basket.types.d.ts +18 -0
- package/dist/contexts/basket/basket.types.js +1 -0
- package/dist/contexts/client.context.d.ts +5 -0
- package/dist/contexts/client.context.js +2 -0
- package/dist/contexts/current-page.context.d.ts +4 -0
- package/dist/contexts/current-page.context.js +2 -0
- package/dist/contexts/events.context.d.ts +33 -0
- package/dist/contexts/events.context.js +2 -0
- package/dist/contexts/pages.context.d.ts +25 -0
- package/dist/contexts/pages.context.js +1 -0
- package/dist/contexts/properties.context.d.ts +24 -0
- package/dist/contexts/properties.context.js +9 -0
- package/dist/contexts/types.d.ts +16 -0
- package/dist/contexts/types.js +1 -0
- package/dist/contexts/utils.d.ts +1 -0
- package/dist/contexts/utils.js +1 -0
- package/dist/controllers/time-expiration.d.ts +11 -0
- package/dist/controllers/time-expiration.js +31 -0
- package/dist/core/api/api-error.d.ts +20 -0
- package/dist/core/api/api-error.js +27 -0
- package/dist/core/api/middlewares/booking-session/booking-session.constants.d.ts +5 -0
- package/dist/core/api/middlewares/booking-session/booking-session.constants.js +5 -0
- package/dist/core/api/middlewares/booking-session/booking-session.d.ts +2 -0
- package/dist/core/api/middlewares/booking-session/booking-session.js +56 -0
- package/dist/core/api/middlewares/booking-session/booking-session.utils.d.ts +5 -0
- package/dist/core/api/middlewares/booking-session/booking-session.utils.js +70 -0
- package/dist/core/api/middlewares/error-handler/error-handler.d.ts +6 -0
- package/dist/core/api/middlewares/error-handler/error-handler.js +27 -0
- package/dist/core/api/queries.d.ts +74 -0
- package/dist/core/api/queries.js +120 -0
- package/dist/core/constants/api-version.d.ts +1 -0
- package/dist/core/constants/api-version.js +1 -0
- package/dist/core/currency/constants.d.ts +5 -0
- package/dist/core/currency/constants.js +101 -0
- package/dist/core/currency/index.d.ts +12 -0
- package/dist/core/currency/index.js +6 -0
- package/dist/core/events.d.ts +196 -0
- package/dist/core/events.js +46 -0
- package/dist/core/i18n/date.d.ts +7 -0
- package/dist/core/i18n/date.js +65 -0
- package/dist/core/i18n/locale-codes.d.ts +13 -0
- package/dist/core/i18n/locale-codes.js +52 -0
- package/dist/core/i18n/localization.d.ts +5 -0
- package/dist/core/i18n/localization.js +15 -0
- package/dist/core/images/constants.d.ts +7 -0
- package/dist/core/images/constants.js +7 -0
- package/dist/core/images/filters.d.ts +28 -0
- package/dist/core/images/filters.js +51 -0
- package/dist/core/images/helpers.d.ts +12 -0
- package/dist/core/images/helpers.js +14 -0
- package/dist/core/images/preset-adapter.d.ts +23 -0
- package/dist/core/images/preset-adapter.js +52 -0
- package/dist/core/images/selection.d.ts +45 -0
- package/dist/core/images/selection.js +125 -0
- package/dist/core/images/srcset.d.ts +28 -0
- package/dist/core/images/srcset.js +52 -0
- package/dist/core/images/url.d.ts +23 -0
- package/dist/core/images/url.js +40 -0
- package/dist/core/pages.d.ts +68 -0
- package/dist/core/pages.js +1 -0
- package/dist/core/signals.d.ts +2 -0
- package/dist/core/signals.js +3 -0
- package/dist/core/storybook/argTypes.d.ts +1 -0
- package/dist/core/storybook/argTypes.js +46 -0
- package/dist/core/storybook/cssprops.d.ts +30 -0
- package/dist/core/storybook/cssprops.js +46 -0
- package/dist/core/types/api-errors.d.ts +8 -0
- package/dist/core/types/api-errors.js +1 -0
- package/dist/core/types/basket.d.ts +18 -0
- package/dist/core/types/basket.js +1 -0
- package/dist/core/types/core/base.d.ts +11 -0
- package/dist/core/types/core/base.js +1 -0
- package/dist/core/types/core/category.d.ts +2 -0
- package/dist/core/types/core/category.js +1 -0
- package/dist/core/types/core/currency.d.ts +2 -0
- package/dist/core/types/core/currency.js +1 -0
- package/dist/core/types/core/index.d.ts +6 -0
- package/dist/core/types/core/index.js +1 -0
- package/dist/core/types/core/locale.d.ts +2 -0
- package/dist/core/types/core/locale.js +1 -0
- package/dist/core/types/core/points.d.ts +4 -0
- package/dist/core/types/core/points.js +1 -0
- package/dist/core/types/core/rating.d.ts +1 -0
- package/dist/core/types/core/rating.js +1 -0
- package/dist/core/types/core/sorting.d.ts +2 -0
- package/dist/core/types/core/sorting.js +1 -0
- package/dist/core/types/currencies.d.ts +2 -0
- package/dist/core/types/currencies.js +1 -0
- package/dist/core/types/index.d.ts +6 -0
- package/dist/core/types/index.js +1 -0
- package/dist/core/types/locales.d.ts +4 -0
- package/dist/core/types/locales.js +1 -0
- package/dist/core/types/seats-config.d.ts +13 -0
- package/dist/core/types/seats-config.js +9 -0
- package/dist/core/types/shared.d.ts +1 -0
- package/dist/core/types/shared.js +1 -0
- package/dist/core/utils/datetime.d.ts +77 -0
- package/dist/core/utils/datetime.js +153 -0
- package/dist/core/utils/function.d.ts +4 -0
- package/dist/core/utils/function.js +22 -0
- package/dist/core/utils/html.d.ts +28 -0
- package/dist/core/utils/html.js +78 -0
- package/dist/core/utils/locale.d.ts +3 -0
- package/dist/core/utils/locale.js +3 -0
- package/dist/core/utils/scroll-lock.d.ts +50 -0
- package/dist/core/utils/scroll-lock.js +121 -0
- package/dist/core/utils/text.d.ts +9 -0
- package/dist/core/utils/text.js +50 -0
- package/dist/core/utils/time.d.ts +2 -0
- package/dist/core/utils/time.js +10 -0
- package/dist/custom-elements.json +37289 -0
- package/dist/errors.d.ts +3 -0
- package/dist/errors.js +5 -0
- package/dist/helpers/helpers.d.ts +5 -0
- package/dist/helpers/helpers.js +31 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +14 -0
- package/dist/locales/da-DK.d.ts +261 -0
- package/dist/locales/da-DK.js +273 -0
- package/dist/locales/de-DE.d.ts +261 -0
- package/dist/locales/de-DE.js +273 -0
- package/dist/locales/en-IE.d.ts +261 -0
- package/dist/locales/en-IE.js +273 -0
- package/dist/locales/en-US.d.ts +261 -0
- package/dist/locales/en-US.js +273 -0
- package/dist/locales/es-ES.d.ts +261 -0
- package/dist/locales/es-ES.js +273 -0
- package/dist/locales/fr-FR.d.ts +261 -0
- package/dist/locales/fr-FR.js +273 -0
- package/dist/locales/fr-MA.d.ts +261 -0
- package/dist/locales/fr-MA.js +273 -0
- package/dist/locales/is-IS.d.ts +261 -0
- package/dist/locales/is-IS.js +273 -0
- package/dist/locales/it-IT.d.ts +261 -0
- package/dist/locales/it-IT.js +273 -0
- package/dist/locales/ms-MY.d.ts +261 -0
- package/dist/locales/ms-MY.js +273 -0
- package/dist/locales/nb-NO.d.ts +261 -0
- package/dist/locales/nb-NO.js +273 -0
- package/dist/locales/pl-PL.d.ts +261 -0
- package/dist/locales/pl-PL.js +273 -0
- package/dist/locales/pt-PT.d.ts +261 -0
- package/dist/locales/pt-PT.js +273 -0
- package/dist/locales/sv-SE.d.ts +261 -0
- package/dist/locales/sv-SE.js +273 -0
- package/dist/locales/th-TH.d.ts +261 -0
- package/dist/locales/th-TH.js +273 -0
- package/dist/locales/tr-TR.d.ts +261 -0
- package/dist/locales/tr-TR.js +273 -0
- package/dist/locales/zh-CN.d.ts +261 -0
- package/dist/locales/zh-CN.js +273 -0
- package/dist/mixins/base.mixin.d.ts +22 -0
- package/dist/mixins/base.mixin.js +120 -0
- package/dist/mixins/coinbase.mixin.d.ts +70 -0
- package/dist/mixins/coinbase.mixin.js +979 -0
- package/dist/mixins/error-modal.mixin.d.ts +16 -0
- package/dist/mixins/error-modal.mixin.js +108 -0
- package/dist/mixins/error-modal.styles.d.ts +2 -0
- package/dist/mixins/error-modal.styles.js +81 -0
- package/dist/mixins/location-search/location-search.d.ts +7 -0
- package/dist/mixins/location-search/location-search.js +334 -0
- package/dist/mixins/location-search/location-search.styles.d.ts +2 -0
- package/dist/mixins/location-search/location-search.styles.js +80 -0
- package/dist/mixins/location-search/types.d.ts +10 -0
- package/dist/mixins/location-search/types.js +1 -0
- package/dist/mixins/overlay/overlay-mixin.d.ts +4 -0
- package/dist/mixins/overlay/overlay-mixin.js +86 -0
- package/dist/mixins/overlay/types.d.ts +8 -0
- package/dist/mixins/overlay/types.js +1 -0
- package/dist/mixins/points/points.d.ts +3 -0
- package/dist/mixins/points/points.js +30 -0
- package/dist/mixins/points/types.d.ts +8 -0
- package/dist/mixins/points/types.js +1 -0
- package/dist/mixins/search-mixin/search-mixin.d.ts +4 -0
- package/dist/mixins/search-mixin/search-mixin.js +66 -0
- package/dist/mixins/search-mixin/types.d.ts +7 -0
- package/dist/mixins/search-mixin/types.js +1 -0
- package/dist/sdk/chrome.d.ts +10 -0
- package/dist/sdk/chrome.js +83 -0
- package/dist/sdk/element-adapter.d.ts +16 -0
- package/dist/sdk/element-adapter.js +60 -0
- package/dist/sdk/meta.d.ts +7 -0
- package/dist/sdk/meta.js +9 -0
- package/dist/sdk/mount.d.ts +19 -0
- package/dist/sdk/mount.js +289 -0
- package/dist/sdk/navigation-intent.d.ts +34 -0
- package/dist/sdk/navigation-intent.js +28 -0
- package/dist/sdk/page-registry.d.ts +32 -0
- package/dist/sdk/page-registry.js +84 -0
- package/dist/sdk/redaction.d.ts +11 -0
- package/dist/sdk/redaction.js +61 -0
- package/dist/sdk/theme.d.ts +19 -0
- package/dist/sdk/theme.js +75 -0
- package/dist/sdk/types.d.ts +258 -0
- package/dist/sdk/types.js +1 -0
- package/dist/sdk/url.d.ts +47 -0
- package/dist/sdk/url.js +199 -0
- package/dist/sdk/validation.d.ts +50 -0
- package/dist/sdk/validation.js +318 -0
- package/dist/styles/contrast-fixtures.d.ts +10 -0
- package/dist/styles/contrast-fixtures.js +61 -0
- package/dist/styles/contrast.d.ts +19 -0
- package/dist/styles/contrast.js +100 -0
- package/dist/styles/defaults/component.d.ts +2 -0
- package/dist/styles/defaults/component.js +31 -0
- package/dist/styles/primitives.d.ts +14 -0
- package/dist/styles/primitives.js +68 -0
- package/dist/styles/tokens.css +359 -0
- package/dist/styles/tokens.d.ts +18 -0
- package/dist/styles/tokens.generated.d.ts +1 -0
- package/dist/styles/tokens.generated.js +4 -0
- package/dist/styles/tokens.js +54 -0
- package/dist/styles/tokens.metadata.d.ts +14 -0
- package/dist/styles/tokens.metadata.js +210 -0
- package/dist/views/constants.d.ts +3 -0
- package/dist/views/constants.js +2 -0
- package/dist/views/details-page/details-page.component.d.ts +129 -0
- package/dist/views/details-page/details-page.component.js +1567 -0
- package/dist/views/details-page/details-page.d.ts +8 -0
- package/dist/views/details-page/details-page.js +6 -0
- package/dist/views/details-page/details-page.styles.d.ts +2 -0
- package/dist/views/details-page/details-page.styles.js +558 -0
- package/dist/views/details-page/details-page.utilts.d.ts +40 -0
- package/dist/views/details-page/details-page.utilts.js +188 -0
- package/dist/views/details-page/partials/theater-description/theater-description.component.d.ts +13 -0
- package/dist/views/details-page/partials/theater-description/theater-description.component.js +76 -0
- package/dist/views/details-page/partials/theater-description/theater-description.d.ts +8 -0
- package/dist/views/details-page/partials/theater-description/theater-description.js +6 -0
- package/dist/views/details-page/partials/theater-description/theater-description.styles.d.ts +2 -0
- package/dist/views/details-page/partials/theater-description/theater-description.styles.js +19 -0
- package/dist/views/details-page/partials/tour-description/tour-description.component.d.ts +20 -0
- package/dist/views/details-page/partials/tour-description/tour-description.component.js +155 -0
- package/dist/views/details-page/partials/tour-description/tour-description.d.ts +8 -0
- package/dist/views/details-page/partials/tour-description/tour-description.js +6 -0
- package/dist/views/details-page/partials/tour-description/tour-description.styles.d.ts +2 -0
- package/dist/views/details-page/partials/tour-description/tour-description.styles.js +11 -0
- package/dist/views/help-page/help-page.component.d.ts +74 -0
- package/dist/views/help-page/help-page.component.js +594 -0
- package/dist/views/help-page/help-page.d.ts +8 -0
- package/dist/views/help-page/help-page.fields.d.ts +12 -0
- package/dist/views/help-page/help-page.fields.js +46 -0
- package/dist/views/help-page/help-page.js +6 -0
- package/dist/views/help-page/help-page.styles.d.ts +2 -0
- package/dist/views/help-page/help-page.styles.js +218 -0
- package/dist/views/help-page/help-page.types.d.ts +36 -0
- package/dist/views/help-page/help-page.types.js +1 -0
- package/dist/views/help-page/help-page.utils.d.ts +3 -0
- package/dist/views/help-page/help-page.utils.js +29 -0
- package/dist/views/help-page/help-page.validators.d.ts +7 -0
- package/dist/views/help-page/help-page.validators.js +22 -0
- package/dist/views/landing-page/landing-page.component.d.ts +127 -0
- package/dist/views/landing-page/landing-page.component.js +1003 -0
- package/dist/views/landing-page/landing-page.constants.d.ts +1 -0
- package/dist/views/landing-page/landing-page.constants.js +1 -0
- package/dist/views/landing-page/landing-page.d.ts +8 -0
- package/dist/views/landing-page/landing-page.js +6 -0
- package/dist/views/landing-page/landing-page.styles.d.ts +2 -0
- package/dist/views/landing-page/landing-page.styles.js +109 -0
- package/dist/views/landing-page/landing-page.types.d.ts +7 -0
- package/dist/views/landing-page/landing-page.types.js +1 -0
- package/dist/views/payment-page/controllers/crypto-auth.controller.d.ts +71 -0
- package/dist/views/payment-page/controllers/crypto-auth.controller.js +252 -0
- package/dist/views/payment-page/controllers/crypto-transfer.controller.d.ts +99 -0
- package/dist/views/payment-page/controllers/crypto-transfer.controller.js +288 -0
- package/dist/views/payment-page/controllers/form-validation.controller.d.ts +60 -0
- package/dist/views/payment-page/controllers/form-validation.controller.js +122 -0
- package/dist/views/payment-page/controllers/layout.controller.d.ts +22 -0
- package/dist/views/payment-page/controllers/layout.controller.js +43 -0
- package/dist/views/payment-page/controllers/payment-flow.controller.d.ts +47 -0
- package/dist/views/payment-page/controllers/payment-flow.controller.js +63 -0
- package/dist/views/payment-page/controllers/stripe-payment.controller.d.ts +66 -0
- package/dist/views/payment-page/controllers/stripe-payment.controller.js +202 -0
- package/dist/views/payment-page/domain/payment-mappers.d.ts +7 -0
- package/dist/views/payment-page/domain/payment-mappers.js +7 -0
- package/dist/views/payment-page/domain/payment-validators.d.ts +6 -0
- package/dist/views/payment-page/domain/payment-validators.js +6 -0
- package/dist/views/payment-page/domain/recovery-payload.d.ts +8 -0
- package/dist/views/payment-page/domain/recovery-payload.js +7 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.component.d.ts +47 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.component.js +247 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.d.ts +8 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.js +6 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.styles.js +77 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.component.d.ts +34 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.component.js +165 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.d.ts +8 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.js +6 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.styles.js +27 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.component.d.ts +17 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.component.js +193 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.d.ts +8 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.js +6 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.styles.js +191 -0
- package/dist/views/payment-page/partials/country-field/country-field.component.d.ts +44 -0
- package/dist/views/payment-page/partials/country-field/country-field.component.js +260 -0
- package/dist/views/payment-page/partials/country-field/country-field.d.ts +8 -0
- package/dist/views/payment-page/partials/country-field/country-field.js +6 -0
- package/dist/views/payment-page/partials/country-field/country-field.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/country-field/country-field.styles.js +21 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.component.d.ts +19 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.component.js +108 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.d.ts +8 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.js +6 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.styles.js +21 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.component.d.ts +10 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.component.js +54 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.d.ts +8 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.js +6 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.styles.js +54 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.component.d.ts +48 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.component.js +215 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.d.ts +8 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.js +6 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.styles.js +61 -0
- package/dist/views/payment-page/partials/stripe/stripe.component.d.ts +104 -0
- package/dist/views/payment-page/partials/stripe/stripe.component.js +522 -0
- package/dist/views/payment-page/partials/stripe/stripe.constants.d.ts +46 -0
- package/dist/views/payment-page/partials/stripe/stripe.constants.js +48 -0
- package/dist/views/payment-page/partials/stripe/stripe.d.ts +8 -0
- package/dist/views/payment-page/partials/stripe/stripe.js +6 -0
- package/dist/views/payment-page/partials/stripe/stripe.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/stripe/stripe.styles.js +102 -0
- package/dist/views/payment-page/partials/stripe/stripe.types.d.ts +72 -0
- package/dist/views/payment-page/partials/stripe/stripe.types.js +4 -0
- package/dist/views/payment-page/partials/stripe/stripe.utils.d.ts +85 -0
- package/dist/views/payment-page/partials/stripe/stripe.utils.js +228 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.d.ts +22 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.js +65 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.d.ts +8 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.js +6 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.js +12 -0
- package/dist/views/payment-page/payment-page.component.d.ts +237 -0
- package/dist/views/payment-page/payment-page.component.js +1733 -0
- package/dist/views/payment-page/payment-page.constants.d.ts +38 -0
- package/dist/views/payment-page/payment-page.constants.js +45 -0
- package/dist/views/payment-page/payment-page.d.ts +8 -0
- package/dist/views/payment-page/payment-page.fields.d.ts +162 -0
- package/dist/views/payment-page/payment-page.fields.js +164 -0
- package/dist/views/payment-page/payment-page.js +6 -0
- package/dist/views/payment-page/payment-page.styles.d.ts +2 -0
- package/dist/views/payment-page/payment-page.styles.js +392 -0
- package/dist/views/payment-page/payment-page.types.d.ts +98 -0
- package/dist/views/payment-page/payment-page.types.js +1 -0
- package/dist/views/payment-page/payment-page.utils.d.ts +239 -0
- package/dist/views/payment-page/payment-page.utils.js +906 -0
- package/dist/views/payment-page/payment-page.validation-schema.d.ts +28 -0
- package/dist/views/payment-page/payment-page.validation-schema.js +42 -0
- package/dist/views/payment-page/payment-page.validators.d.ts +56 -0
- package/dist/views/payment-page/payment-page.validators.js +147 -0
- package/dist/views/payment-page/services/payment-api.service.d.ts +104 -0
- package/dist/views/payment-page/services/payment-api.service.js +99 -0
- package/dist/views/search-page/search-page.component.d.ts +61 -0
- package/dist/views/search-page/search-page.component.js +358 -0
- package/dist/views/search-page/search-page.d.ts +8 -0
- package/dist/views/search-page/search-page.js +6 -0
- package/dist/views/search-page/search-page.styles.d.ts +2 -0
- package/dist/views/search-page/search-page.styles.js +81 -0
- package/dist/views/suggestion-widget/suggestion-widget.component.d.ts +33 -0
- package/dist/views/suggestion-widget/suggestion-widget.component.js +111 -0
- package/dist/views/suggestion-widget/suggestion-widget.d.ts +8 -0
- package/dist/views/suggestion-widget/suggestion-widget.js +6 -0
- package/dist/views/suggestion-widget/suggestion-widget.styles.d.ts +2 -0
- package/dist/views/suggestion-widget/suggestion-widget.styles.js +41 -0
- package/package.json +158 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { fireEvent } from "../core/events.js";
|
|
2
|
+
import { DEFAULT_CURRENCY, DEFAULT_LOCALE } from "../views/constants.js";
|
|
3
|
+
import { attachCallbackBridge, } from "./element-adapter.js";
|
|
4
|
+
import { createChrome } from "./chrome.js";
|
|
5
|
+
import { applyConfig, applyParams, captureParamDefaults, defaultPageRegistry, } from "./page-registry.js";
|
|
6
|
+
import { applyColorScheme, applyTheme, clearTheme } from "./theme.js";
|
|
7
|
+
import { safeUrl } from "@coras-io/brand-tokens";
|
|
8
|
+
import { ensureTokensInjected } from "../styles/tokens.js";
|
|
9
|
+
import { redactValue, toPublicErrorDetail } from "./redaction.js";
|
|
10
|
+
import { assertValidPage, CorasValidationError, validateConfig, validateMountOptions, validatePageParams, } from "./validation.js";
|
|
11
|
+
function isThenable(value) {
|
|
12
|
+
return (typeof value === "object" &&
|
|
13
|
+
value !== null &&
|
|
14
|
+
typeof value.then === "function");
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create a `mount` function bound to a page registry. The public `mount` uses
|
|
18
|
+
* the real registry; tests inject a lightweight registry so lifecycle behavior
|
|
19
|
+
* is verifiable without loading the heavy page modules.
|
|
20
|
+
*/
|
|
21
|
+
export function createMountWith(registry) {
|
|
22
|
+
return function mount(options) {
|
|
23
|
+
// Validation throws synchronously before anything is rendered.
|
|
24
|
+
const validated = validateMountOptions(options);
|
|
25
|
+
const strict = options.strict === true;
|
|
26
|
+
const preview = options.preview === true;
|
|
27
|
+
const container = options.container;
|
|
28
|
+
const root = document.createElement("div");
|
|
29
|
+
root.setAttribute("data-coras-root", "");
|
|
30
|
+
// Token system is defined on the container scope and inherits into every
|
|
31
|
+
// nested Web Component's shadow tree (plan F-004). Adopting into the
|
|
32
|
+
// document is idempotent and shared across mounts.
|
|
33
|
+
ensureTokensInjected(container.ownerDocument ?? document);
|
|
34
|
+
let currentPage = validated.page;
|
|
35
|
+
let currentConfig = validated.config;
|
|
36
|
+
let currentParams = validated.params;
|
|
37
|
+
let currentChrome = options.chrome;
|
|
38
|
+
applyTheme(root, currentConfig.theme);
|
|
39
|
+
applyColorScheme(root, currentConfig.colorScheme);
|
|
40
|
+
root.dataset.corasPage = currentPage;
|
|
41
|
+
container.appendChild(root);
|
|
42
|
+
let destroyed = false;
|
|
43
|
+
let generation = 0;
|
|
44
|
+
let pageElement = null;
|
|
45
|
+
let pageParamDefaults = {};
|
|
46
|
+
let chromeElements = [];
|
|
47
|
+
let readySettled = false;
|
|
48
|
+
let resolveReady;
|
|
49
|
+
let rejectReady;
|
|
50
|
+
const ready = new Promise((resolve, reject) => {
|
|
51
|
+
resolveReady = resolve;
|
|
52
|
+
rejectReady = reject;
|
|
53
|
+
});
|
|
54
|
+
// Prevent unhandled rejection if the host never reads `ready`.
|
|
55
|
+
void ready.catch(() => undefined);
|
|
56
|
+
function localeOf(config) {
|
|
57
|
+
return config.locale ?? DEFAULT_LOCALE;
|
|
58
|
+
}
|
|
59
|
+
function currencyOf(config) {
|
|
60
|
+
return config.currency ?? DEFAULT_CURRENCY;
|
|
61
|
+
}
|
|
62
|
+
function emitObservability(name, data) {
|
|
63
|
+
if (!options.onObservability)
|
|
64
|
+
return;
|
|
65
|
+
try {
|
|
66
|
+
options.onObservability({
|
|
67
|
+
name,
|
|
68
|
+
page: currentPage,
|
|
69
|
+
...(data
|
|
70
|
+
? {
|
|
71
|
+
data: redactValue(data),
|
|
72
|
+
}
|
|
73
|
+
: {}),
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
options.logger?.error?.(error);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function reportError(error) {
|
|
81
|
+
const detail = toPublicErrorDetail(error, currentPage);
|
|
82
|
+
// Per-mount logging only; the SDK never writes unconditional console output.
|
|
83
|
+
options.logger?.error?.(error);
|
|
84
|
+
options.onError?.(detail);
|
|
85
|
+
fireEvent(root, "coras:error", detail);
|
|
86
|
+
emitObservability("coras.error", { code: detail.code });
|
|
87
|
+
}
|
|
88
|
+
function removeChrome() {
|
|
89
|
+
for (const element of chromeElements) {
|
|
90
|
+
element.remove();
|
|
91
|
+
}
|
|
92
|
+
chromeElements = [];
|
|
93
|
+
}
|
|
94
|
+
async function renderPage(targetPage, generationToken) {
|
|
95
|
+
const entry = registry[targetPage];
|
|
96
|
+
await entry.load();
|
|
97
|
+
if (destroyed || generationToken !== generation)
|
|
98
|
+
return;
|
|
99
|
+
const element = document.createElement(entry.tagName);
|
|
100
|
+
applyConfig(element, currentConfig);
|
|
101
|
+
// Preview is a mount-time rendering mode, not config or a param, so it is
|
|
102
|
+
// set directly on the element; pages that honor it read their own property.
|
|
103
|
+
element.preview = preview;
|
|
104
|
+
const paramDefaults = captureParamDefaults(element, entry);
|
|
105
|
+
applyParams(element, entry, currentParams, paramDefaults);
|
|
106
|
+
// Chrome is rebuilt per page rather than moved: the navbar/footer consume
|
|
107
|
+
// the page's context (locale, dispatch, current page…) and re-parenting a
|
|
108
|
+
// context consumer across providers leaves those bindings stale.
|
|
109
|
+
const chrome = await createChrome(currentChrome, {
|
|
110
|
+
logo: currentConfig.theme?.logo,
|
|
111
|
+
});
|
|
112
|
+
if (destroyed || generationToken !== generation)
|
|
113
|
+
return;
|
|
114
|
+
for (const chromeElement of chrome) {
|
|
115
|
+
element.appendChild(chromeElement);
|
|
116
|
+
}
|
|
117
|
+
if (pageElement && pageElement.parentNode === root) {
|
|
118
|
+
root.removeChild(pageElement);
|
|
119
|
+
}
|
|
120
|
+
pageElement = element;
|
|
121
|
+
pageParamDefaults = paramDefaults;
|
|
122
|
+
chromeElements = chrome;
|
|
123
|
+
root.appendChild(element);
|
|
124
|
+
root.dataset.corasPage = targetPage;
|
|
125
|
+
if (isThenable(element.updateComplete)) {
|
|
126
|
+
try {
|
|
127
|
+
await element.updateComplete;
|
|
128
|
+
}
|
|
129
|
+
catch {
|
|
130
|
+
// Page render errors are surfaced through the page's own error paths.
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
if (destroyed || generationToken !== generation)
|
|
134
|
+
return;
|
|
135
|
+
root.dataset.corasMounted = "true";
|
|
136
|
+
if (!readySettled) {
|
|
137
|
+
readySettled = true;
|
|
138
|
+
resolveReady();
|
|
139
|
+
}
|
|
140
|
+
fireEvent(root, "coras:ready", { page: targetPage });
|
|
141
|
+
emitObservability("coras.page-loaded", { page: targetPage });
|
|
142
|
+
}
|
|
143
|
+
const bridge = attachCallbackBridge(root, options, {
|
|
144
|
+
onListenerError: (error) => options.logger?.error?.(error),
|
|
145
|
+
});
|
|
146
|
+
function startRender(targetPage) {
|
|
147
|
+
const token = ++generation;
|
|
148
|
+
renderPage(targetPage, token).catch((error) => {
|
|
149
|
+
if (destroyed || token !== generation)
|
|
150
|
+
return;
|
|
151
|
+
reportError(error);
|
|
152
|
+
if (!readySettled) {
|
|
153
|
+
readySettled = true;
|
|
154
|
+
rejectReady(error);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
startRender(currentPage);
|
|
159
|
+
function applyUpdate(patch) {
|
|
160
|
+
if (destroyed)
|
|
161
|
+
return;
|
|
162
|
+
// Reject an unknown page before mutating any state, so a bad update or
|
|
163
|
+
// navigate can't leave currentPage pointing at a page the registry lacks.
|
|
164
|
+
if (patch.page != null)
|
|
165
|
+
assertValidPage(patch.page);
|
|
166
|
+
if (patch.config) {
|
|
167
|
+
currentConfig = validateConfig({ ...currentConfig, ...patch.config }, strict);
|
|
168
|
+
if ("theme" in patch.config) {
|
|
169
|
+
clearTheme(root);
|
|
170
|
+
applyTheme(root, currentConfig.theme);
|
|
171
|
+
// Chrome is not rebuilt on a theme-only update, so push the (possibly
|
|
172
|
+
// changed) default logo to the live navbar directly.
|
|
173
|
+
for (const element of chromeElements) {
|
|
174
|
+
if (element.tagName === "CORAS-NAVBAR") {
|
|
175
|
+
element.logo = safeUrl(currentConfig.theme?.logo);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
// A colour-scheme flip is just the root's `color-scheme`; the
|
|
180
|
+
// `light-dark()` pairs already carry both modes.
|
|
181
|
+
if ("colorScheme" in patch.config) {
|
|
182
|
+
applyColorScheme(root, currentConfig.colorScheme);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
const pageChanged = patch.page != null && patch.page !== currentPage;
|
|
186
|
+
const chromeChanged = patch.chrome !== undefined;
|
|
187
|
+
if (chromeChanged)
|
|
188
|
+
currentChrome = patch.chrome;
|
|
189
|
+
if (pageChanged) {
|
|
190
|
+
currentPage = patch.page;
|
|
191
|
+
currentParams = validatePageParams(currentPage, patch.params, strict);
|
|
192
|
+
startRender(currentPage);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
if (patch.params) {
|
|
196
|
+
// Params are the full desired state for the page: replace rather than
|
|
197
|
+
// merge so params the host dropped (cleared) are reset to defaults by
|
|
198
|
+
// applyParams instead of lingering.
|
|
199
|
+
currentParams = validatePageParams(currentPage, patch.params, strict);
|
|
200
|
+
}
|
|
201
|
+
// No page change: update the existing element in place when possible.
|
|
202
|
+
if (pageElement) {
|
|
203
|
+
applyConfig(pageElement, currentConfig);
|
|
204
|
+
applyParams(pageElement, registry[currentPage], currentParams, pageParamDefaults);
|
|
205
|
+
if (chromeChanged) {
|
|
206
|
+
removeChrome();
|
|
207
|
+
void createChrome(currentChrome, {
|
|
208
|
+
logo: currentConfig.theme?.logo,
|
|
209
|
+
}).then((chrome) => {
|
|
210
|
+
if (destroyed || !pageElement)
|
|
211
|
+
return;
|
|
212
|
+
for (const chromeElement of chrome) {
|
|
213
|
+
pageElement.appendChild(chromeElement);
|
|
214
|
+
}
|
|
215
|
+
chromeElements = chrome;
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
else if (chromeChanged) {
|
|
220
|
+
// Page still loading; re-render so chrome is included on first mount.
|
|
221
|
+
startRender(currentPage);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
const app = {
|
|
225
|
+
ready,
|
|
226
|
+
get state() {
|
|
227
|
+
return Object.freeze({
|
|
228
|
+
page: currentPage,
|
|
229
|
+
params: { ...currentParams },
|
|
230
|
+
locale: localeOf(currentConfig),
|
|
231
|
+
currency: currencyOf(currentConfig),
|
|
232
|
+
});
|
|
233
|
+
},
|
|
234
|
+
update(patch) {
|
|
235
|
+
applyUpdate(patch);
|
|
236
|
+
},
|
|
237
|
+
navigate(page, params, navigateOptions) {
|
|
238
|
+
if (destroyed)
|
|
239
|
+
return;
|
|
240
|
+
applyUpdate({ page, params });
|
|
241
|
+
if (navigateOptions?.emitNavigate) {
|
|
242
|
+
// Programmatic navigation is tagged `host` so onNavigate handlers can
|
|
243
|
+
// avoid re-driving the host router (loop prevention, ADR 0014).
|
|
244
|
+
fireEvent(root, "coras:navigate", {
|
|
245
|
+
page,
|
|
246
|
+
params,
|
|
247
|
+
locale: localeOf(currentConfig),
|
|
248
|
+
currency: currencyOf(currentConfig),
|
|
249
|
+
source: "host",
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
prefetch(page) {
|
|
254
|
+
assertValidPage(page);
|
|
255
|
+
return registry[page].load().then(() => undefined);
|
|
256
|
+
},
|
|
257
|
+
unmount() {
|
|
258
|
+
if (destroyed)
|
|
259
|
+
return;
|
|
260
|
+
emitObservability("coras.unmounted");
|
|
261
|
+
destroyed = true;
|
|
262
|
+
// Invalidate any in-flight render so late loads are ignored.
|
|
263
|
+
generation += 1;
|
|
264
|
+
bridge.dispose();
|
|
265
|
+
removeChrome();
|
|
266
|
+
if (root.parentNode) {
|
|
267
|
+
root.remove();
|
|
268
|
+
}
|
|
269
|
+
pageElement = null;
|
|
270
|
+
if (!readySettled) {
|
|
271
|
+
readySettled = true;
|
|
272
|
+
rejectReady(new CorasValidationError("invalid_config", "The Coras embed was unmounted before it became ready."));
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
};
|
|
276
|
+
return app;
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Mount a Coras page into a host container and return a synchronous app handle.
|
|
281
|
+
*
|
|
282
|
+
* ```ts
|
|
283
|
+
* const app = mount({ container, page: "landing", config });
|
|
284
|
+
* await app.ready;
|
|
285
|
+
* app.update({ page: "search", params: { search: "museum" } });
|
|
286
|
+
* app.unmount();
|
|
287
|
+
* ```
|
|
288
|
+
*/
|
|
289
|
+
export const mount = createMountWith(defaultPageRegistry);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { SupportedCurrencies } from "../core/types/core/currency.js";
|
|
2
|
+
import type { SupportedLocales } from "../core/types/core/locale.js";
|
|
3
|
+
import type { CorasNavigateDetail, CorasPageName, CorasStateChangeDetail } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* Classifies a page param update into the public event contract:
|
|
6
|
+
* a cross-page target (or an external link) is a navigation intent
|
|
7
|
+
* (`coras:navigate`); a same-page param change is a state change
|
|
8
|
+
* (`coras:state-change`). See ADR 0014.
|
|
9
|
+
*
|
|
10
|
+
* Pure and DOM-free so it can be unit tested directly.
|
|
11
|
+
*/
|
|
12
|
+
export type PageUpdateInputCore = {
|
|
13
|
+
page?: CorasPageName;
|
|
14
|
+
currency?: SupportedCurrencies;
|
|
15
|
+
locale?: SupportedLocales;
|
|
16
|
+
href?: string;
|
|
17
|
+
/** Page-specific fields only (base fields already removed). */
|
|
18
|
+
params: Record<string, unknown>;
|
|
19
|
+
};
|
|
20
|
+
export type PageUpdateContext = {
|
|
21
|
+
currentPage: CorasPageName;
|
|
22
|
+
/** The current page's params snapshot (base fields already removed). */
|
|
23
|
+
currentParams: Record<string, unknown>;
|
|
24
|
+
locale: SupportedLocales;
|
|
25
|
+
currency: SupportedCurrencies;
|
|
26
|
+
};
|
|
27
|
+
export type PageUpdateClassification = {
|
|
28
|
+
kind: "navigate";
|
|
29
|
+
detail: CorasNavigateDetail;
|
|
30
|
+
} | {
|
|
31
|
+
kind: "state-change";
|
|
32
|
+
detail: CorasStateChangeDetail;
|
|
33
|
+
};
|
|
34
|
+
export declare function classifyPageUpdate(input: PageUpdateInputCore, context: PageUpdateContext): PageUpdateClassification;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export function classifyPageUpdate(input, context) {
|
|
2
|
+
const locale = input.locale ?? context.locale;
|
|
3
|
+
const currency = input.currency ?? context.currency;
|
|
4
|
+
const isNavigate = (input.page != null && input.page !== context.currentPage) ||
|
|
5
|
+
input.href != null;
|
|
6
|
+
if (isNavigate) {
|
|
7
|
+
return {
|
|
8
|
+
kind: "navigate",
|
|
9
|
+
detail: {
|
|
10
|
+
page: input.page ?? context.currentPage,
|
|
11
|
+
params: input.params,
|
|
12
|
+
locale,
|
|
13
|
+
currency,
|
|
14
|
+
...(input.href != null ? { href: input.href } : {}),
|
|
15
|
+
source: "embed",
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
kind: "state-change",
|
|
21
|
+
detail: {
|
|
22
|
+
page: context.currentPage,
|
|
23
|
+
params: { ...context.currentParams, ...input.params },
|
|
24
|
+
locale,
|
|
25
|
+
currency,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { CorasConfig, CorasPageName } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* A loosely-typed element whose public properties the SDK sets. The page custom
|
|
4
|
+
* elements are internal (ADR 0001), so the SDK writes their properties directly.
|
|
5
|
+
*/
|
|
6
|
+
export type ConfigurableElement = HTMLElement & Record<string, unknown>;
|
|
7
|
+
export type PageEntry = {
|
|
8
|
+
/** Internal custom-element tag used to render this page. */
|
|
9
|
+
tagName: string;
|
|
10
|
+
/** Lazily import (and thereby register) the page module. */
|
|
11
|
+
load: () => Promise<unknown>;
|
|
12
|
+
/** Map public param names to element properties. */
|
|
13
|
+
paramToProperty: Record<string, string>;
|
|
14
|
+
};
|
|
15
|
+
export type PageRegistry = Record<CorasPageName, PageEntry>;
|
|
16
|
+
export declare const defaultPageRegistry: PageRegistry;
|
|
17
|
+
/** Apply normalized SDK config to a page (or chrome) element's properties. */
|
|
18
|
+
export declare function applyConfig(element: ConfigurableElement, config: CorasConfig): void;
|
|
19
|
+
/**
|
|
20
|
+
* Snapshot the element's default values for every param the page exposes. Taken
|
|
21
|
+
* right after creation (before any params are applied) so a later update can
|
|
22
|
+
* reset a param the host no longer provides back to its default — i.e. "clear"
|
|
23
|
+
* it — instead of leaving the stale value in place.
|
|
24
|
+
*/
|
|
25
|
+
export declare function captureParamDefaults(element: ConfigurableElement, entry: PageEntry): Record<string, unknown>;
|
|
26
|
+
/**
|
|
27
|
+
* Sync the element to the page's params. Params are the full desired state for
|
|
28
|
+
* the page: each known param is set to its provided value, or reset to the
|
|
29
|
+
* captured default when absent. This makes cleared params (dropped from the
|
|
30
|
+
* host's URL/state) actually clear on the element.
|
|
31
|
+
*/
|
|
32
|
+
export declare function applyParams(element: ConfigurableElement, entry: PageEntry, params: Record<string, unknown>, defaults: Record<string, unknown>): void;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/** Identity map helper for params whose public name equals the element property. */
|
|
2
|
+
function identity(...keys) {
|
|
3
|
+
return Object.fromEntries(keys.map((key) => [key, key]));
|
|
4
|
+
}
|
|
5
|
+
export const defaultPageRegistry = {
|
|
6
|
+
landing: {
|
|
7
|
+
tagName: "coras-landing-page",
|
|
8
|
+
load: () => import("../views/landing-page/landing-page.js"),
|
|
9
|
+
// Public `sort` maps to the internal `sorting` property.
|
|
10
|
+
paramToProperty: {
|
|
11
|
+
...identity("country", "city", "startDate", "endDate", "duration", "price", "categories"),
|
|
12
|
+
sort: "sorting",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
search: {
|
|
16
|
+
tagName: "coras-search-page",
|
|
17
|
+
load: () => import("../views/search-page/search-page.js"),
|
|
18
|
+
paramToProperty: identity("search", "startDate"),
|
|
19
|
+
},
|
|
20
|
+
details: {
|
|
21
|
+
tagName: "coras-details-page",
|
|
22
|
+
load: () => import("../views/details-page/details-page.js"),
|
|
23
|
+
// Public `id` maps to the internal `attractionId` property.
|
|
24
|
+
paramToProperty: { id: "attractionId", date: "date" },
|
|
25
|
+
},
|
|
26
|
+
payment: {
|
|
27
|
+
tagName: "coras-payment-page",
|
|
28
|
+
load: () => import("../views/payment-page/payment-page.js"),
|
|
29
|
+
paramToProperty: identity("metadata"),
|
|
30
|
+
},
|
|
31
|
+
help: {
|
|
32
|
+
tagName: "coras-help-page",
|
|
33
|
+
load: () => import("../views/help-page/help-page.js"),
|
|
34
|
+
paramToProperty: identity("content"),
|
|
35
|
+
},
|
|
36
|
+
"suggestion-widget": {
|
|
37
|
+
tagName: "coras-suggestion-widget",
|
|
38
|
+
load: () => import("../views/suggestion-widget/suggestion-widget.js"),
|
|
39
|
+
paramToProperty: identity("limit", "showExploreCard", "country", "city"),
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
/** Apply normalized SDK config to a page (or chrome) element's properties. */
|
|
43
|
+
export function applyConfig(element, config) {
|
|
44
|
+
element.apiHost = config.apiUrl;
|
|
45
|
+
element.distributorID = config.distributorId;
|
|
46
|
+
if (config.assetsUrl != null)
|
|
47
|
+
element.assetsURL = config.assetsUrl;
|
|
48
|
+
if (config.locale != null)
|
|
49
|
+
element.locale = config.locale;
|
|
50
|
+
if (config.allowedLocales != null)
|
|
51
|
+
element.locales = config.allowedLocales;
|
|
52
|
+
if (config.currency != null)
|
|
53
|
+
element.currency = config.currency;
|
|
54
|
+
if (config.allowedCurrencies != null)
|
|
55
|
+
element.currencies = config.allowedCurrencies;
|
|
56
|
+
if (config.loyaltyPointsEnabled != null) {
|
|
57
|
+
element.loyaltyPoints = config.loyaltyPointsEnabled;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Snapshot the element's default values for every param the page exposes. Taken
|
|
62
|
+
* right after creation (before any params are applied) so a later update can
|
|
63
|
+
* reset a param the host no longer provides back to its default — i.e. "clear"
|
|
64
|
+
* it — instead of leaving the stale value in place.
|
|
65
|
+
*/
|
|
66
|
+
export function captureParamDefaults(element, entry) {
|
|
67
|
+
const defaults = {};
|
|
68
|
+
for (const [paramName, property] of Object.entries(entry.paramToProperty)) {
|
|
69
|
+
defaults[paramName] = element[property];
|
|
70
|
+
}
|
|
71
|
+
return defaults;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Sync the element to the page's params. Params are the full desired state for
|
|
75
|
+
* the page: each known param is set to its provided value, or reset to the
|
|
76
|
+
* captured default when absent. This makes cleared params (dropped from the
|
|
77
|
+
* host's URL/state) actually clear on the element.
|
|
78
|
+
*/
|
|
79
|
+
export function applyParams(element, entry, params, defaults) {
|
|
80
|
+
for (const [paramName, property] of Object.entries(entry.paramToProperty)) {
|
|
81
|
+
const value = params[paramName];
|
|
82
|
+
element[property] = value !== undefined ? value : defaults[paramName];
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CorasPageName, CorasErrorDetail } from "./types.js";
|
|
2
|
+
/** Mask sensitive substrings inside a string. */
|
|
3
|
+
export declare function redactString(value: string): string;
|
|
4
|
+
/** Recursively redact string values inside a JSON-ish structure. */
|
|
5
|
+
export declare function redactValue(value: unknown): unknown;
|
|
6
|
+
/**
|
|
7
|
+
* Convert any thrown value into a safe, redacted public error. Validation
|
|
8
|
+
* errors keep their stable code and (redacted) message; everything else is
|
|
9
|
+
* collapsed to a generic message so internal/provider details never leak.
|
|
10
|
+
*/
|
|
11
|
+
export declare function toPublicErrorDetail(error: unknown, page?: CorasPageName): CorasErrorDetail;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { CorasValidationError } from "./validation.js";
|
|
2
|
+
/**
|
|
3
|
+
* Data minimization for public payloads (P-038). Public errors, observability
|
|
4
|
+
* events, and logs must never carry secrets or unnecessary PII. These helpers
|
|
5
|
+
* scrub the values the SDK forwards to host callbacks/events.
|
|
6
|
+
*/
|
|
7
|
+
const REDACTED = "[redacted]";
|
|
8
|
+
const SENSITIVE_PATTERNS = [
|
|
9
|
+
// Email addresses.
|
|
10
|
+
/[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}/gi,
|
|
11
|
+
// Stripe-style secrets / keys / payment intents.
|
|
12
|
+
/\b(?:sk|pk|rk)_(?:live|test)_[a-z0-9]+/gi,
|
|
13
|
+
/\b(?:pi|seti|cs| pm|ch)_[a-z0-9]+_secret_[a-z0-9]+/gi,
|
|
14
|
+
/client_secret["':=\s]+[a-z0-9_-]+/gi,
|
|
15
|
+
// Bearer / access tokens.
|
|
16
|
+
/\bBearer\s+[a-z0-9._-]+/gi,
|
|
17
|
+
// Card-like number runs (13-19 digits, optionally space/dash separated).
|
|
18
|
+
/\b(?:\d[ -]?){13,19}\b/g,
|
|
19
|
+
];
|
|
20
|
+
/** Mask sensitive substrings inside a string. */
|
|
21
|
+
export function redactString(value) {
|
|
22
|
+
let result = value;
|
|
23
|
+
for (const pattern of SENSITIVE_PATTERNS) {
|
|
24
|
+
result = result.replace(pattern, REDACTED);
|
|
25
|
+
}
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
/** Recursively redact string values inside a JSON-ish structure. */
|
|
29
|
+
export function redactValue(value) {
|
|
30
|
+
if (typeof value === "string")
|
|
31
|
+
return redactString(value);
|
|
32
|
+
if (Array.isArray(value))
|
|
33
|
+
return value.map(redactValue);
|
|
34
|
+
if (value && typeof value === "object") {
|
|
35
|
+
const out = {};
|
|
36
|
+
for (const [key, item] of Object.entries(value)) {
|
|
37
|
+
out[key] = redactValue(item);
|
|
38
|
+
}
|
|
39
|
+
return out;
|
|
40
|
+
}
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Convert any thrown value into a safe, redacted public error. Validation
|
|
45
|
+
* errors keep their stable code and (redacted) message; everything else is
|
|
46
|
+
* collapsed to a generic message so internal/provider details never leak.
|
|
47
|
+
*/
|
|
48
|
+
export function toPublicErrorDetail(error, page) {
|
|
49
|
+
if (error instanceof CorasValidationError) {
|
|
50
|
+
return {
|
|
51
|
+
code: error.code,
|
|
52
|
+
message: redactString(error.message),
|
|
53
|
+
...(page ? { page } : {}),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
code: "mount_error",
|
|
58
|
+
message: "The Coras embed encountered an error.",
|
|
59
|
+
...(page ? { page } : {}),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { CorasColorScheme, CorasTheme } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* The brand `theme` keys that map 1:1 to a public `--coras-brand-*` custom
|
|
4
|
+
* property. Sourced from the shared engine so the SDK, plugin, and Studio agree.
|
|
5
|
+
* `navbarShadow`, `logo`, and `fontFaces` are applied specially (below).
|
|
6
|
+
*/
|
|
7
|
+
export declare const THEME_CSS_VARS: Record<"primary" | "secondary" | "background" | "surface" | "text" | "textMuted" | "radius" | "font" | "textButton" | "bodyIcon" | "buttonRadius" | "chipRadius" | "navbar" | "navbarText" | "navbarIcon" | "navbarBorder" | "footer" | "footerText" | "footerLink" | "error" | "success" | "warning" | "info", string>;
|
|
8
|
+
/**
|
|
9
|
+
* Set the mount root's colour scheme so the token sheet's `light-dark()` pairs
|
|
10
|
+
* resolve correctly. `"system"` maps to `light dark` (follows the OS via
|
|
11
|
+
* `prefers-color-scheme`); `"inherit"` overrides the sheet's default `light` so
|
|
12
|
+
* the root inherits the host page's `color-scheme`. Cheap enough to call on its
|
|
13
|
+
* own for a mode flip.
|
|
14
|
+
*/
|
|
15
|
+
export declare function applyColorScheme(element: HTMLElement, scheme: CorasColorScheme | undefined): void;
|
|
16
|
+
/** Apply a brand to an element as scoped `--coras-*` variables (P-052/P-061). */
|
|
17
|
+
export declare function applyTheme(element: HTMLElement, theme: CorasTheme | undefined): void;
|
|
18
|
+
/** Remove any brand variables/fonts previously set on an element. */
|
|
19
|
+
export declare function clearTheme(element: HTMLElement): void;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { BRAND_CSS_VARS, brandVarValue, fontFacesToCSS, sanitizeBrandValue, } from "@coras-io/brand-tokens";
|
|
2
|
+
/**
|
|
3
|
+
* The brand `theme` keys that map 1:1 to a public `--coras-brand-*` custom
|
|
4
|
+
* property. Sourced from the shared engine so the SDK, plugin, and Studio agree.
|
|
5
|
+
* `navbarShadow`, `logo`, and `fontFaces` are applied specially (below).
|
|
6
|
+
*/
|
|
7
|
+
export const THEME_CSS_VARS = BRAND_CSS_VARS;
|
|
8
|
+
const THEME_KEYS = Object.keys(THEME_CSS_VARS);
|
|
9
|
+
/**
|
|
10
|
+
* Set the mount root's colour scheme so the token sheet's `light-dark()` pairs
|
|
11
|
+
* resolve correctly. `"system"` maps to `light dark` (follows the OS via
|
|
12
|
+
* `prefers-color-scheme`); `"inherit"` overrides the sheet's default `light` so
|
|
13
|
+
* the root inherits the host page's `color-scheme`. Cheap enough to call on its
|
|
14
|
+
* own for a mode flip.
|
|
15
|
+
*/
|
|
16
|
+
export function applyColorScheme(element, scheme) {
|
|
17
|
+
element.style.colorScheme =
|
|
18
|
+
scheme === "dark"
|
|
19
|
+
? "dark"
|
|
20
|
+
: scheme === "system"
|
|
21
|
+
? "light dark"
|
|
22
|
+
: scheme === "inherit"
|
|
23
|
+
? "inherit"
|
|
24
|
+
: "light";
|
|
25
|
+
}
|
|
26
|
+
/** Apply a brand to an element as scoped `--coras-*` variables (P-052/P-061). */
|
|
27
|
+
export function applyTheme(element, theme) {
|
|
28
|
+
if (!theme)
|
|
29
|
+
return;
|
|
30
|
+
// Each themeable var is emitted as a `light-dark()` pair (or a single value
|
|
31
|
+
// when the field has no dark variant) via the shared engine, which sanitizes
|
|
32
|
+
// both sides — an invalid value yields "" and is skipped, so the Coras default
|
|
33
|
+
// (itself a light-dark pair) shows through. The dark side falls back to the
|
|
34
|
+
// Coras dark default when the brand sets only the light value.
|
|
35
|
+
const dark = (theme.dark ?? {});
|
|
36
|
+
for (const key of THEME_KEYS) {
|
|
37
|
+
if (theme[key] == null && dark[key] == null)
|
|
38
|
+
continue;
|
|
39
|
+
const value = brandVarValue(key, theme[key], dark[key]);
|
|
40
|
+
if (value)
|
|
41
|
+
element.style.setProperty(THEME_CSS_VARS[key], value);
|
|
42
|
+
}
|
|
43
|
+
if (theme.navbarShadow != null) {
|
|
44
|
+
const shadow = sanitizeBrandValue("navbarShadow", theme.navbarShadow);
|
|
45
|
+
if (shadow) {
|
|
46
|
+
element.style.setProperty("--coras-brand-navbar-shadow", shadow);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
// The page background is opt-in (see the root rule in tokens.css): only an
|
|
50
|
+
// explicit `background` paints the embed surface, so the embed otherwise
|
|
51
|
+
// adopts the host page's background.
|
|
52
|
+
if (theme.background != null || dark.background != null) {
|
|
53
|
+
const pageBg = brandVarValue("background", theme.background, dark.background);
|
|
54
|
+
if (pageBg)
|
|
55
|
+
element.style.setProperty("--coras-page-background", pageBg);
|
|
56
|
+
}
|
|
57
|
+
const faces = fontFacesToCSS(theme);
|
|
58
|
+
if (faces) {
|
|
59
|
+
const style = element.ownerDocument.createElement("style");
|
|
60
|
+
style.setAttribute("data-coras-fontfaces", "");
|
|
61
|
+
style.textContent = faces;
|
|
62
|
+
element.appendChild(style);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/** Remove any brand variables/fonts previously set on an element. */
|
|
66
|
+
export function clearTheme(element) {
|
|
67
|
+
for (const key of THEME_KEYS) {
|
|
68
|
+
element.style.removeProperty(THEME_CSS_VARS[key]);
|
|
69
|
+
}
|
|
70
|
+
element.style.removeProperty("--coras-brand-navbar-shadow");
|
|
71
|
+
element.style.removeProperty("--coras-page-background");
|
|
72
|
+
element
|
|
73
|
+
.querySelectorAll(":scope > [data-coras-fontfaces]")
|
|
74
|
+
.forEach((n) => n.remove());
|
|
75
|
+
}
|