@coras-io/embed 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +15 -2
  3. package/dist/components/accordion/accordion-item/accordion-item.component.js +9 -3
  4. package/dist/components/accordion/accordion-item/accordion-item.styles.js +4 -0
  5. package/dist/components/accordion/accordion.component.js +8 -0
  6. package/dist/components/alert/alert.component.d.ts +1 -1
  7. package/dist/components/alert/alert.component.js +4 -3
  8. package/dist/components/attraction-card/base/attraction-card.mixin.d.ts +0 -2
  9. package/dist/components/attraction-card/base/attraction-card.mixin.js +0 -6
  10. package/dist/components/attraction-card/base/attraction-card.types.d.ts +0 -1
  11. package/dist/components/basket-mobile/basket-mobile.component.d.ts +14 -3
  12. package/dist/components/basket-mobile/basket-mobile.component.js +71 -15
  13. package/dist/components/better-carousel/better-carousel.component.d.ts +3 -5
  14. package/dist/components/better-carousel/better-carousel.component.js +13 -34
  15. package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.js +5 -12
  16. package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.styles.js +13 -5
  17. package/dist/components/breadcrumbs/breadcrumbs.component.d.ts +0 -1
  18. package/dist/components/breadcrumbs/breadcrumbs.component.js +5 -8
  19. package/dist/components/breadcrumbs/breadcrumbs.styles.js +8 -2
  20. package/dist/components/button/button.constants.d.ts +1 -2
  21. package/dist/components/button/button.constants.js +0 -1
  22. package/dist/components/calendar/base/calendar.mixin.js +5 -1
  23. package/dist/components/calendar/multi/multi.component.d.ts +2 -2
  24. package/dist/components/calendar/multi/multi.component.js +12 -19
  25. package/dist/components/carousel/carousel.component.js +9 -2
  26. package/dist/components/categories-tree/categories-tree.component.d.ts +5 -3
  27. package/dist/components/categories-tree/categories-tree.component.js +22 -21
  28. package/dist/components/checkbox/checkbox.component.js +5 -1
  29. package/dist/components/checkbox-group/checkbox-group.component.js +1 -1
  30. package/dist/components/checkbox-group/checkbox-group.styles.js +1 -1
  31. package/dist/components/chip/chip.component.js +8 -3
  32. package/dist/components/crypto-auth-modal/crypto-auth-modal.component.d.ts +6 -0
  33. package/dist/components/crypto-auth-modal/crypto-auth-modal.component.js +15 -1
  34. package/dist/components/currencies-list/currencies-list.component.js +0 -1
  35. package/dist/components/dialog/dialog.component.js +52 -21
  36. package/dist/components/drawer/drawer.component.d.ts +3 -2
  37. package/dist/components/drawer/drawer.component.js +13 -18
  38. package/dist/components/drawer/drawer.styles.js +5 -2
  39. package/dist/components/dropdown/dropdown.component.js +6 -9
  40. package/dist/components/expiration-timer/expiration-timer.component.d.ts +2 -3
  41. package/dist/components/expiration-timer/expiration-timer.component.js +10 -8
  42. package/dist/components/explore-card/explore-card.component.js +3 -1
  43. package/dist/components/explore-card/explore-card.styles.js +31 -0
  44. package/dist/components/filters-drawer/filters-drawer.component.js +1 -1
  45. package/dist/components/flag-icon/flag-icon.component.d.ts +4 -2
  46. package/dist/components/flag-icon/flag-icon.component.js +16 -4
  47. package/dist/components/icon/icon.component.js +15 -2
  48. package/dist/components/image/image.component.js +4 -3
  49. package/dist/components/image-viewer/image-viewer.component.js +6 -4
  50. package/dist/components/input-field/input-field.component.js +10 -6
  51. package/dist/components/layout/layout.styles.js +1 -1
  52. package/dist/components/locales-list/locales-list.component.js +0 -1
  53. package/dist/components/location-image/location-image.component.js +0 -1
  54. package/dist/components/locations-results/locations-results.component.d.ts +10 -0
  55. package/dist/components/locations-results/locations-results.component.js +22 -15
  56. package/dist/components/locations-results/locations-results.styles.js +4 -1
  57. package/dist/components/message-card/message-card.component.d.ts +1 -1
  58. package/dist/components/message-card/message-card.component.js +4 -3
  59. package/dist/components/mobile-menu-item/mobile-menu-item.component.d.ts +0 -1
  60. package/dist/components/mobile-menu-item/mobile-menu-item.component.js +14 -16
  61. package/dist/components/mobile-menu-item/mobile-menu-item.styles.js +9 -5
  62. package/dist/components/option-group/option-chip/option-chip.component.d.ts +4 -1
  63. package/dist/components/option-group/option-chip/option-chip.component.js +23 -10
  64. package/dist/components/option-group/option-group.component.d.ts +3 -1
  65. package/dist/components/option-group/option-group.component.js +10 -3
  66. package/dist/components/overlay/overlay.component.d.ts +0 -5
  67. package/dist/components/overlay/overlay.component.js +3 -15
  68. package/dist/components/phone-country-code/phone-country-code.component.d.ts +4 -0
  69. package/dist/components/phone-country-code/phone-country-code.component.js +37 -0
  70. package/dist/components/phone-country-codes/phone-country-codes.component.js +1 -1
  71. package/dist/components/phone-field/phone-field.component.js +2 -2
  72. package/dist/components/search-button/search-button.component.d.ts +1 -1
  73. package/dist/components/search-button/search-button.component.js +13 -7
  74. package/dist/components/seated-selector/seated-selector.component.js +3 -3
  75. package/dist/components/seats-io/seats-io.component.d.ts +3 -2
  76. package/dist/components/seats-io/seats-io.component.js +31 -13
  77. package/dist/components/seats-io/seats-io.constants.d.ts +0 -2
  78. package/dist/components/seats-io/seats-io.constants.js +0 -3
  79. package/dist/components/seats-io/seats-io.transform.d.ts +1 -6
  80. package/dist/components/seats-io/seats-io.transform.js +1 -20
  81. package/dist/components/select-list/select-list.component.js +7 -2
  82. package/dist/components/select-list/select-option/select-option.component.d.ts +3 -1
  83. package/dist/components/select-list/select-option/select-option.component.js +10 -3
  84. package/dist/components/tabs/tabs.component.d.ts +2 -0
  85. package/dist/components/tabs/tabs.component.js +59 -5
  86. package/dist/components/time-tag/time-tag.component.js +1 -1
  87. package/dist/containers/basket/basket.component.d.ts +1 -1
  88. package/dist/containers/basket/basket.component.js +21 -20
  89. package/dist/containers/navbar/navbar.component.d.ts +12 -8
  90. package/dist/containers/navbar/navbar.component.js +108 -62
  91. package/dist/containers/navbar/navbar.styles.js +23 -5
  92. package/dist/containers/navbar/navbar.utils.js +4 -4
  93. package/dist/contexts/basket/basket.provider.d.ts +3 -4
  94. package/dist/contexts/basket/basket.provider.js +46 -61
  95. package/dist/contexts/basket/basket.types.d.ts +0 -2
  96. package/dist/controllers/time-expiration.d.ts +15 -2
  97. package/dist/controllers/time-expiration.js +47 -17
  98. package/dist/core/api/client.d.ts +9 -0
  99. package/dist/core/api/client.js +26 -0
  100. package/dist/core/api/middlewares/booking-session/booking-session.constants.d.ts +0 -2
  101. package/dist/core/api/middlewares/booking-session/booking-session.constants.js +0 -2
  102. package/dist/core/api/middlewares/booking-session/booking-session.js +3 -12
  103. package/dist/core/api/middlewares/booking-session/booking-session.utils.d.ts +0 -1
  104. package/dist/core/api/middlewares/booking-session/booking-session.utils.js +6 -28
  105. package/dist/core/api/middlewares/error-handler/error-handler.js +5 -1
  106. package/dist/core/api/middlewares/retry/retry.constants.d.ts +3 -0
  107. package/dist/core/api/middlewares/retry/retry.constants.js +7 -0
  108. package/dist/core/api/middlewares/retry/retry.d.ts +2 -0
  109. package/dist/core/api/middlewares/retry/retry.js +48 -0
  110. package/dist/core/api/queries.d.ts +13 -38
  111. package/dist/core/api/queries.js +16 -99
  112. package/dist/core/events.d.ts +2 -4
  113. package/dist/core/i18n/date.d.ts +14 -5
  114. package/dist/core/i18n/date.js +47 -20
  115. package/dist/core/i18n/localization.js +10 -3
  116. package/dist/core/images/helpers.js +6 -5
  117. package/dist/core/logger.d.ts +17 -0
  118. package/dist/core/logger.js +13 -0
  119. package/dist/core/types/api-schema.d.ts +7872 -0
  120. package/dist/core/types/seats-config.d.ts +5 -4
  121. package/dist/core/types/seats-config.js +10 -3
  122. package/dist/core/utils/crypto-address.d.ts +12 -0
  123. package/dist/core/utils/crypto-address.js +17 -0
  124. package/dist/core/utils/datetime.d.ts +13 -11
  125. package/dist/core/utils/datetime.js +41 -51
  126. package/dist/core/utils/loyalty.d.ts +8 -0
  127. package/dist/core/utils/loyalty.js +10 -0
  128. package/dist/core/utils/redaction.d.ts +9 -0
  129. package/dist/core/utils/redaction.js +58 -0
  130. package/dist/core/utils/time.js +2 -3
  131. package/dist/helpers/helpers.d.ts +6 -0
  132. package/dist/helpers/helpers.js +33 -16
  133. package/dist/locales/ar-SA.d.ts +38 -21
  134. package/dist/locales/ar-SA.js +38 -21
  135. package/dist/locales/da-DK.d.ts +38 -21
  136. package/dist/locales/da-DK.js +38 -21
  137. package/dist/locales/de-DE.d.ts +38 -21
  138. package/dist/locales/de-DE.js +38 -21
  139. package/dist/locales/en-IE.d.ts +38 -21
  140. package/dist/locales/en-IE.js +38 -21
  141. package/dist/locales/en-US.d.ts +38 -21
  142. package/dist/locales/en-US.js +38 -21
  143. package/dist/locales/es-ES.d.ts +38 -21
  144. package/dist/locales/es-ES.js +38 -21
  145. package/dist/locales/fr-FR.d.ts +38 -21
  146. package/dist/locales/fr-FR.js +38 -21
  147. package/dist/locales/fr-MA.d.ts +38 -21
  148. package/dist/locales/fr-MA.js +38 -21
  149. package/dist/locales/is-IS.d.ts +38 -21
  150. package/dist/locales/is-IS.js +38 -21
  151. package/dist/locales/it-IT.d.ts +38 -21
  152. package/dist/locales/it-IT.js +38 -21
  153. package/dist/locales/ms-MY.d.ts +38 -21
  154. package/dist/locales/ms-MY.js +38 -21
  155. package/dist/locales/nb-NO.d.ts +38 -21
  156. package/dist/locales/nb-NO.js +38 -21
  157. package/dist/locales/pl-PL.d.ts +38 -21
  158. package/dist/locales/pl-PL.js +38 -21
  159. package/dist/locales/pt-PT.d.ts +38 -21
  160. package/dist/locales/pt-PT.js +38 -21
  161. package/dist/locales/sv-SE.d.ts +38 -21
  162. package/dist/locales/sv-SE.js +38 -21
  163. package/dist/locales/th-TH.d.ts +38 -21
  164. package/dist/locales/th-TH.js +38 -21
  165. package/dist/locales/tr-TR.d.ts +38 -21
  166. package/dist/locales/tr-TR.js +38 -21
  167. package/dist/locales/zh-CN.d.ts +38 -21
  168. package/dist/locales/zh-CN.js +38 -21
  169. package/dist/locales/zh-HK.d.ts +38 -21
  170. package/dist/locales/zh-HK.js +38 -21
  171. package/dist/mixins/base.mixin.d.ts +3 -1
  172. package/dist/mixins/base.mixin.js +10 -7
  173. package/dist/mixins/coinbase.mixin.d.ts +13 -17
  174. package/dist/mixins/coinbase.mixin.js +251 -288
  175. package/dist/mixins/error-modal.mixin.js +8 -4
  176. package/dist/mixins/location-search/location-search.d.ts +13 -1
  177. package/dist/mixins/location-search/location-search.js +35 -27
  178. package/dist/mixins/overlay/overlay-mixin.js +39 -3
  179. package/dist/mixins/overlay/types.d.ts +1 -0
  180. package/dist/mixins/search-mixin/search-mixin.js +8 -5
  181. package/dist/sdk/diagnostics.js +2 -0
  182. package/dist/sdk/mount.d.ts +10 -0
  183. package/dist/sdk/mount.js +20 -1
  184. package/dist/sdk/page-registry.js +5 -0
  185. package/dist/sdk/params.d.ts +53 -0
  186. package/dist/sdk/params.js +180 -0
  187. package/dist/sdk/redaction.d.ts +1 -4
  188. package/dist/sdk/redaction.js +2 -41
  189. package/dist/sdk/types.d.ts +21 -7
  190. package/dist/sdk/url.d.ts +1 -1
  191. package/dist/sdk/url.js +12 -5
  192. package/dist/sdk/validation.d.ts +1 -26
  193. package/dist/sdk/validation.js +8 -145
  194. package/dist/styles/tokens.d.ts +1 -1
  195. package/dist/styles/tokens.generated.d.ts +1 -1
  196. package/dist/styles/tokens.generated.js +1 -1
  197. package/dist/views/chrome-only-page/chrome-only-page.component.d.ts +30 -0
  198. package/dist/views/chrome-only-page/chrome-only-page.component.js +24 -0
  199. package/dist/views/chrome-only-page/chrome-only-page.d.ts +8 -0
  200. package/dist/views/chrome-only-page/chrome-only-page.js +6 -0
  201. package/dist/views/chrome-only-page/chrome-only-page.styles.js +13 -0
  202. package/dist/views/details-page/details-page.component.d.ts +11 -4
  203. package/dist/views/details-page/details-page.component.js +263 -237
  204. package/dist/views/details-page/details-page.utilts.d.ts +63 -3
  205. package/dist/views/details-page/details-page.utilts.js +53 -5
  206. package/dist/views/details-page/partials/location-categories/location-categories.component.d.ts +29 -0
  207. package/dist/views/details-page/partials/location-categories/location-categories.component.js +149 -0
  208. package/dist/views/details-page/partials/location-categories/location-categories.d.ts +8 -0
  209. package/dist/views/details-page/partials/location-categories/location-categories.js +6 -0
  210. package/dist/views/details-page/partials/location-categories/location-categories.styles.js +35 -0
  211. package/dist/views/details-page/partials/location-highlights/location-highlights.component.d.ts +26 -0
  212. package/dist/views/details-page/partials/location-highlights/location-highlights.component.js +158 -0
  213. package/dist/views/details-page/partials/location-highlights/location-highlights.d.ts +8 -0
  214. package/dist/views/details-page/partials/location-highlights/location-highlights.js +6 -0
  215. package/dist/views/details-page/partials/location-highlights/location-highlights.styles.js +42 -0
  216. package/dist/views/details-page/partials/tour-description/tour-description.component.js +1 -4
  217. package/dist/views/help-page/help-page.component.d.ts +2 -0
  218. package/dist/views/help-page/help-page.component.js +37 -18
  219. package/dist/views/help-page/help-page.utils.js +6 -5
  220. package/dist/views/landing-page/landing-page.component.d.ts +5 -8
  221. package/dist/views/landing-page/landing-page.component.js +82 -97
  222. package/dist/views/payment-page/controllers/crypto-auth.controller.d.ts +10 -4
  223. package/dist/views/payment-page/controllers/crypto-auth.controller.js +53 -31
  224. package/dist/views/payment-page/controllers/crypto-transfer.controller.d.ts +9 -5
  225. package/dist/views/payment-page/controllers/crypto-transfer.controller.js +26 -39
  226. package/dist/views/payment-page/controllers/payment-flow.controller.d.ts +6 -1
  227. package/dist/views/payment-page/controllers/payment-flow.controller.js +1 -0
  228. package/dist/views/payment-page/controllers/stripe-payment.controller.d.ts +20 -2
  229. package/dist/views/payment-page/controllers/stripe-payment.controller.js +42 -19
  230. package/dist/views/payment-page/partials/activity-details/activity-details.component.d.ts +2 -0
  231. package/dist/views/payment-page/partials/activity-details/activity-details.component.js +6 -3
  232. package/dist/views/payment-page/partials/billing-address/billing-address.component.d.ts +2 -0
  233. package/dist/views/payment-page/partials/billing-address/billing-address.component.js +5 -1
  234. package/dist/views/payment-page/partials/confirmation/confirmation.component.js +2 -3
  235. package/dist/views/payment-page/partials/country-field/country-field.component.js +1 -1
  236. package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.component.js +3 -3
  237. package/dist/views/payment-page/partials/stripe/stripe.component.d.ts +2 -0
  238. package/dist/views/payment-page/partials/stripe/stripe.component.js +36 -7
  239. package/dist/views/payment-page/partials/stripe/stripe.utils.js +0 -3
  240. package/dist/views/payment-page/payment-page.component.d.ts +39 -6
  241. package/dist/views/payment-page/payment-page.component.js +302 -178
  242. package/dist/views/payment-page/payment-page.constants.d.ts +1 -27
  243. package/dist/views/payment-page/payment-page.constants.js +3 -30
  244. package/dist/views/payment-page/payment-page.types.d.ts +1 -19
  245. package/dist/views/payment-page/payment-page.utils.d.ts +22 -13
  246. package/dist/views/payment-page/payment-page.utils.js +57 -75
  247. package/dist/views/payment-page/services/payment-api.service.d.ts +16 -34
  248. package/dist/views/payment-page/services/payment-api.service.js +19 -27
  249. package/dist/views/search-page/search-page.component.d.ts +2 -0
  250. package/dist/views/search-page/search-page.component.js +39 -20
  251. package/dist/views/suggestion-widget/suggestion-widget.component.d.ts +1 -0
  252. package/dist/views/suggestion-widget/suggestion-widget.component.js +6 -5
  253. package/package.json +24 -20
  254. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.d.ts +0 -10
  255. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.js +0 -43
  256. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.d.ts +0 -8
  257. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.js +0 -6
  258. package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.js +0 -23
  259. package/dist/components/attraction-discovery/attraction-discovery.component.d.ts +0 -10
  260. package/dist/components/attraction-discovery/attraction-discovery.component.js +0 -52
  261. package/dist/components/attraction-discovery/attraction-discovery.constants.d.ts +0 -4
  262. package/dist/components/attraction-discovery/attraction-discovery.constants.js +0 -5
  263. package/dist/components/attraction-discovery/attraction-discovery.d.ts +0 -8
  264. package/dist/components/attraction-discovery/attraction-discovery.js +0 -6
  265. package/dist/components/attraction-discovery/attraction-discovery.styles.js +0 -193
  266. package/dist/components/basket-rewards/basket-rewards.component.d.ts +0 -10
  267. package/dist/components/basket-rewards/basket-rewards.component.js +0 -52
  268. package/dist/components/basket-rewards/basket-rewards.d.ts +0 -8
  269. package/dist/components/basket-rewards/basket-rewards.js +0 -6
  270. package/dist/components/basket-rewards/basket-rewards.styles.js +0 -18
  271. package/dist/components/filter-chip/filter-chip.component.d.ts +0 -12
  272. package/dist/components/filter-chip/filter-chip.component.js +0 -68
  273. package/dist/components/filter-chip/filter-chip.constants.d.ts +0 -2
  274. package/dist/components/filter-chip/filter-chip.constants.js +0 -2
  275. package/dist/components/filter-chip/filter-chip.d.ts +0 -8
  276. package/dist/components/filter-chip/filter-chip.js +0 -6
  277. package/dist/components/filter-chip/filter-chip.styles.d.ts +0 -2
  278. package/dist/components/filter-chip/filter-chip.styles.js +0 -162
  279. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.d.ts +0 -10
  280. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.js +0 -43
  281. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.d.ts +0 -8
  282. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.js +0 -6
  283. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.d.ts +0 -2
  284. package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.js +0 -28
  285. package/dist/components/image-carousel/image-carousel.component.d.ts +0 -8
  286. package/dist/components/image-carousel/image-carousel.component.js +0 -36
  287. package/dist/components/image-carousel/image-carousel.d.ts +0 -8
  288. package/dist/components/image-carousel/image-carousel.js +0 -6
  289. package/dist/components/image-carousel/image-carousel.styles.d.ts +0 -2
  290. package/dist/components/image-carousel/image-carousel.styles.js +0 -72
  291. package/dist/components/itinerary/itinerary-item/itinerary-item.component.d.ts +0 -9
  292. package/dist/components/itinerary/itinerary-item/itinerary-item.component.js +0 -45
  293. package/dist/components/itinerary/itinerary-item/itinerary-item.d.ts +0 -8
  294. package/dist/components/itinerary/itinerary-item/itinerary-item.js +0 -6
  295. package/dist/components/itinerary/itinerary-item/itinerary-item.styles.d.ts +0 -2
  296. package/dist/components/itinerary/itinerary-item/itinerary-item.styles.js +0 -70
  297. package/dist/components/itinerary/itinerary.component.d.ts +0 -7
  298. package/dist/components/itinerary/itinerary.component.js +0 -23
  299. package/dist/components/itinerary/itinerary.d.ts +0 -8
  300. package/dist/components/itinerary/itinerary.js +0 -6
  301. package/dist/components/itinerary/itinerary.styles.d.ts +0 -2
  302. package/dist/components/itinerary/itinerary.styles.js +0 -15
  303. package/dist/components/marketing-tag/marketing-tag.component.d.ts +0 -5
  304. package/dist/components/marketing-tag/marketing-tag.component.js +0 -8
  305. package/dist/components/marketing-tag/marketing-tag.d.ts +0 -8
  306. package/dist/components/marketing-tag/marketing-tag.js +0 -6
  307. package/dist/components/marketing-tag/marketing-tag.styles.d.ts +0 -2
  308. package/dist/components/marketing-tag/marketing-tag.styles.js +0 -36
  309. package/dist/components/price/price.component.d.ts +0 -12
  310. package/dist/components/price/price.component.js +0 -38
  311. package/dist/components/price/price.d.ts +0 -8
  312. package/dist/components/price/price.js +0 -6
  313. package/dist/components/reviews/review/review.component.d.ts +0 -9
  314. package/dist/components/reviews/review/review.component.js +0 -41
  315. package/dist/components/reviews/review/review.d.ts +0 -8
  316. package/dist/components/reviews/review/review.js +0 -6
  317. package/dist/components/reviews/review/review.styles.d.ts +0 -2
  318. package/dist/components/reviews/review/review.styles.js +0 -45
  319. package/dist/components/reviews/reviews.component.d.ts +0 -9
  320. package/dist/components/reviews/reviews.component.js +0 -56
  321. package/dist/components/reviews/reviews.d.ts +0 -8
  322. package/dist/components/reviews/reviews.js +0 -6
  323. package/dist/components/reviews/reviews.styles.d.ts +0 -2
  324. package/dist/components/reviews/reviews.styles.js +0 -73
  325. package/dist/components/selected-tickets-preview/selected-tickets-preview.component.d.ts +0 -10
  326. package/dist/components/selected-tickets-preview/selected-tickets-preview.component.js +0 -51
  327. package/dist/components/selected-tickets-preview/selected-tickets-preview.d.ts +0 -8
  328. package/dist/components/selected-tickets-preview/selected-tickets-preview.js +0 -6
  329. package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.d.ts +0 -2
  330. package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.js +0 -89
  331. package/dist/components/tag/tag.component.d.ts +0 -8
  332. package/dist/components/tag/tag.component.js +0 -33
  333. package/dist/components/tag/tag.constants.d.ts +0 -1
  334. package/dist/components/tag/tag.constants.js +0 -1
  335. package/dist/components/tag/tag.d.ts +0 -8
  336. package/dist/components/tag/tag.js +0 -6
  337. package/dist/components/tag/tag.styles.d.ts +0 -2
  338. package/dist/components/tag/tag.styles.js +0 -56
  339. package/dist/components/tooltip/tooltip.component.d.ts +0 -19
  340. package/dist/components/tooltip/tooltip.component.js +0 -124
  341. package/dist/components/tooltip/tooltip.d.ts +0 -8
  342. package/dist/components/tooltip/tooltip.js +0 -6
  343. package/dist/components/tooltip/tooltip.styles.d.ts +0 -2
  344. package/dist/components/tooltip/tooltip.styles.js +0 -79
  345. package/dist/core/signals.d.ts +0 -2
  346. package/dist/core/signals.js +0 -3
  347. package/dist/core/storybook/argTypes.d.ts +0 -1
  348. package/dist/core/storybook/argTypes.js +0 -46
  349. package/dist/core/storybook/cssprops.d.ts +0 -30
  350. package/dist/core/storybook/cssprops.js +0 -46
  351. package/dist/core/storybook/demo.d.ts +0 -4
  352. package/dist/core/storybook/demo.js +0 -17
  353. package/dist/core/types/api-errors.d.ts +0 -8
  354. package/dist/core/types/api-errors.js +0 -1
  355. package/dist/styles/contrast-fixtures.d.ts +0 -5
  356. package/dist/styles/contrast-fixtures.js +0 -131
  357. package/dist/views/payment-page/domain/payment-mappers.d.ts +0 -7
  358. package/dist/views/payment-page/domain/payment-mappers.js +0 -7
  359. package/dist/views/payment-page/domain/payment-validators.d.ts +0 -6
  360. package/dist/views/payment-page/domain/payment-validators.js +0 -6
  361. package/dist/views/payment-page/domain/recovery-payload.d.ts +0 -8
  362. package/dist/views/payment-page/domain/recovery-payload.js +0 -7
  363. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.d.ts +0 -22
  364. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.js +0 -65
  365. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.d.ts +0 -8
  366. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.js +0 -6
  367. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.d.ts +0 -2
  368. package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.js +0 -12
  369. package/dist/views/payment-page/payment-page.validation-schema.d.ts +0 -28
  370. package/dist/views/payment-page/payment-page.validation-schema.js +0 -42
  371. /package/dist/{components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.d.ts → views/chrome-only-page/chrome-only-page.styles.d.ts} +0 -0
  372. /package/dist/{components/attraction-discovery/attraction-discovery.styles.d.ts → views/details-page/partials/location-categories/location-categories.styles.d.ts} +0 -0
  373. /package/dist/{components/basket-rewards/basket-rewards.styles.d.ts → views/details-page/partials/location-highlights/location-highlights.styles.d.ts} +0 -0
@@ -3,9 +3,10 @@
3
3
  *
4
4
  * Provides a stable interface for payment-related API operations,
5
5
  * decoupling controllers from the raw API query functions.
6
- * Currently delegates to apiGet/apiPut/apiPatch from core/api/queries.
6
+ * Every method resolves with the response and throws an `APIError` (from the
7
+ * client's error middleware) on a non-ok response.
7
8
  */
8
- import { apiGet, apiPost, apiPut, apiPatch, withErrorHandling, } from "../../../core/api/queries.js";
9
+ import { apiGet, apiPost, apiPut, apiPatch, } from "../../../core/api/queries.js";
9
10
  export class PaymentApiService {
10
11
  constructor(config) {
11
12
  this.config = config;
@@ -14,42 +15,42 @@ export class PaymentApiService {
14
15
  Object.assign(this.config, config);
15
16
  }
16
17
  async fetchCountries(languageCode) {
17
- return withErrorHandling(apiGet({
18
+ return apiGet({
18
19
  client: this.config.client,
19
20
  distributorID: this.config.distributorID,
20
21
  locale: this.config.locale,
21
22
  endpoint: "/{api_version}/countries/{language_code}",
22
23
  path: { language_code: languageCode },
23
- }));
24
+ });
24
25
  }
25
26
  async fetchGeolocation() {
26
- return withErrorHandling(apiGet({
27
+ return apiGet({
27
28
  client: this.config.client,
28
29
  distributorID: this.config.distributorID,
29
30
  locale: this.config.locale,
30
31
  endpoint: "/{api_version}/geolocation",
31
- }));
32
+ });
32
33
  }
33
34
  async checkReservations(bookingSession) {
34
- return withErrorHandling(apiGet({
35
+ return apiGet({
35
36
  client: this.config.client,
36
37
  distributorID: this.config.distributorID,
37
38
  locale: this.config.locale,
38
39
  endpoint: "/{api_version}/reservations/check",
39
40
  bookingSession,
40
- }));
41
+ });
41
42
  }
42
43
  async fetchReservations(bookingSession) {
43
- return withErrorHandling(apiGet({
44
+ return apiGet({
44
45
  client: this.config.client,
45
46
  distributorID: this.config.distributorID,
46
47
  locale: this.config.locale,
47
48
  endpoint: "/{api_version}/reservations",
48
49
  bookingSession,
49
- }));
50
+ });
50
51
  }
51
52
  async confirmReservation(body, bookingSession, headers) {
52
- return withErrorHandling(apiPut({
53
+ return apiPut({
53
54
  client: this.config.client,
54
55
  distributorID: this.config.distributorID,
55
56
  locale: this.config.locale,
@@ -57,43 +58,34 @@ export class PaymentApiService {
57
58
  endpoint: "/{api_version}/reservations",
58
59
  body,
59
60
  headers,
60
- }));
61
+ });
61
62
  }
62
63
  async patchReservation(reservationId, body) {
63
- return withErrorHandling(apiPatch({
64
+ return apiPatch({
64
65
  client: this.config.client,
65
66
  distributorID: this.config.distributorID,
66
67
  locale: this.config.locale,
67
68
  endpoint: "/{api_version}/reservations/{reservation_id}",
68
69
  path: { reservation_id: reservationId },
69
70
  body,
70
- }));
71
- }
72
- async fetchTransactions(userId) {
73
- return withErrorHandling(apiGet({
74
- client: this.config.client,
75
- distributorID: this.config.distributorID,
76
- locale: this.config.locale,
77
- endpoint: "/{api_version}/users/{customer_id}/transactions",
78
- path: { customer_id: userId },
79
- }));
71
+ });
80
72
  }
81
73
  async fetchConfig() {
82
- return withErrorHandling(apiGet({
74
+ return apiGet({
83
75
  client: this.config.client,
84
76
  distributorID: this.config.distributorID,
85
77
  locale: this.config.locale,
86
78
  endpoint: "/{api_version}/config",
87
- }));
79
+ });
88
80
  }
89
81
  async submitUserConsent(email, headers) {
90
- return withErrorHandling(apiPost({
82
+ return apiPost({
91
83
  client: this.config.client,
92
84
  distributorID: this.config.distributorID,
93
85
  locale: this.config.locale,
94
86
  endpoint: "/{api_version}/fida/user-consent",
95
87
  body: { email },
96
88
  headers,
97
- }));
89
+ });
98
90
  }
99
91
  }
@@ -18,6 +18,7 @@ declare const CorasSearchPage_base: import("../../contexts/utils.js").Constructo
18
18
  locale: import("../../index.js").SupportedLocales;
19
19
  locales: import("../../index.js").SupportedLocales[];
20
20
  loyaltyPoints: boolean;
21
+ logger: import("../../core/logger.js").Logger;
21
22
  client: Client<paths>;
22
23
  getPageProperties(): SearchPageParamsEvent;
23
24
  dispatchPageUpdate(params: import("../../contexts/events.context.js").PageDispatchInput): void;
@@ -52,6 +53,7 @@ export declare class CorasSearchPage extends CorasSearchPage_base {
52
53
  private resetSearch;
53
54
  connectedCallback(): void;
54
55
  disconnectedCallback(): void;
56
+ protected willUpdate(changedProperties: PropertyValues): void;
55
57
  updated(changedProperties: PropertyValues): void;
56
58
  private renderSkeleton;
57
59
  private renderAttractions;
@@ -25,7 +25,7 @@ import "../../components/layout/layout.js";
25
25
  import "../../components/breadcrumbs/breadcrumbs.js";
26
26
  import "../../components/breadcrumbs/breadcrumb-item/breadcrumb-item.js";
27
27
  import { Task, TaskStatus } from "@lit/task";
28
- import { apiGet, withErrorHandling } from "../../core/api/queries.js";
28
+ import { apiGet } from "../../core/api/queries.js";
29
29
  import { adaptPresetImages } from "../../core/images/preset-adapter.js";
30
30
  import { ErrorModalMixin } from "../../mixins/error-modal.mixin.js";
31
31
  import { getLocale, setLocale } from "../../core/i18n/localization.js";
@@ -47,10 +47,17 @@ let CorasSearchPage = class CorasSearchPage extends ErrorModalMixin(LocationSear
47
47
  this.hasMore = true;
48
48
  this.attractions = [];
49
49
  this._isFirstUpdate = true;
50
+ // Runs only from the debounced criteria handler, the next-page request and
51
+ // the error modal retry, never from reactive args, so a criteria change
52
+ // cannot fetch the old page alongside the reset one. The body returns the
53
+ // page and the list is accumulated in onComplete, which @lit/task only
54
+ // calls for the latest run, so a late response for a superseded page is
55
+ // dropped instead of appended.
50
56
  this.attractionsSearchTask = new Task(this, {
57
+ autoRun: false,
51
58
  task: async ([search, locale, currency, page, size, startDate]) => {
52
59
  const dateStart = startDate || format(new Date(), "yyyy-MM-dd");
53
- const { data } = await withErrorHandling(apiGet({
60
+ const { data } = await apiGet({
54
61
  client: this.client,
55
62
  distributorID: this.distributorID,
56
63
  locale,
@@ -63,21 +70,12 @@ let CorasSearchPage = class CorasSearchPage extends ErrorModalMixin(LocationSear
63
70
  page,
64
71
  size,
65
72
  },
66
- }));
67
- if (data) {
68
- this.hasMore = (page + 1) * size < (data.total || 0);
69
- if (page === 0) {
70
- this.attractions = data.results || [];
71
- }
72
- else {
73
- this.attractions = [...this.attractions, ...(data.results || [])];
74
- }
75
- }
76
- else {
77
- this.hasMore = false;
78
- this.attractions = page === 0 ? [] : this.attractions;
79
- }
80
- return data;
73
+ });
74
+ return {
75
+ page,
76
+ results: data.results || [],
77
+ hasMore: (page + 1) * size < (data.total || 0),
78
+ };
81
79
  },
82
80
  args: () => [
83
81
  this.search,
@@ -87,6 +85,18 @@ let CorasSearchPage = class CorasSearchPage extends ErrorModalMixin(LocationSear
87
85
  this.pageSize,
88
86
  this.startDate,
89
87
  ],
88
+ onComplete: ({ page, results, hasMore }) => {
89
+ this.attractions =
90
+ page === 0 ? results : [...this.attractions, ...results];
91
+ this.hasMore = hasMore;
92
+ },
93
+ onError: () => {
94
+ // Stop the infinite scroll from re-requesting a failing page; the first
95
+ // page's failure shows the error modal.
96
+ this.hasMore = false;
97
+ if (this.page === 0)
98
+ this.attractions = [];
99
+ },
90
100
  });
91
101
  }
92
102
  static { this.styles = [
@@ -162,6 +172,7 @@ let CorasSearchPage = class CorasSearchPage extends ErrorModalMixin(LocationSear
162
172
  if (this.hasMore &&
163
173
  this.attractionsSearchTask.status !== TaskStatus.PENDING) {
164
174
  this.page++;
175
+ void this.attractionsSearchTask.run();
165
176
  }
166
177
  }
167
178
  setupIntersectionObserver() {
@@ -197,17 +208,25 @@ let CorasSearchPage = class CorasSearchPage extends ErrorModalMixin(LocationSear
197
208
  // Debounced search handler to avoid multiple API calls when search criteria change rapidly
198
209
  this.debouncedSearchHandler = debounce({ delay: 300 }, () => {
199
210
  this.resetSearch();
200
- this.attractionsSearchTask.run();
211
+ void this.attractionsSearchTask.run();
201
212
  });
202
213
  }
203
214
  disconnectedCallback() {
204
215
  super.disconnectedCallback();
205
216
  this.cleanupIntersectionObserver();
206
217
  }
218
+ willUpdate(changedProperties) {
219
+ super.willUpdate(changedProperties);
220
+ if (!this.hasUpdated) {
221
+ void this.attractionsSearchTask.run();
222
+ }
223
+ }
207
224
  updated(changedProperties) {
208
225
  super.updated(changedProperties);
209
226
  if (getLocale() !== this.locale) {
210
- setLocale(this.locale);
227
+ // `loadLocale` falls back on its own (see core/i18n/localization.ts), so
228
+ // the returned promise does not reject; an unknown code throws synchronously.
229
+ void setLocale(this.locale);
211
230
  }
212
231
  this.setupIntersectionObserver();
213
232
  if (!this.hasMore && this.observer) {
@@ -325,7 +344,7 @@ let CorasSearchPage = class CorasSearchPage extends ErrorModalMixin(LocationSear
325
344
  buttonLabel: msg("Refresh the page"),
326
345
  onRetry: () => {
327
346
  this.resetSearch();
328
- this.attractionsSearchTask.run();
347
+ void this.attractionsSearchTask.run();
329
348
  },
330
349
  onHelp: () => this.dispatchPageUpdate({ page: "help" }),
331
350
  })}
@@ -13,6 +13,7 @@ declare const CorasSuggestionWidget_base: import("../../contexts/utils.js").Cons
13
13
  locale: import("../../index.js").SupportedLocales;
14
14
  locales: import("../../index.js").SupportedLocales[];
15
15
  loyaltyPoints: boolean;
16
+ logger: import("../../core/logger.js").Logger;
16
17
  client: import("openapi-fetch").Client<import("../../core/types/api-schema.js").paths>;
17
18
  getPageProperties(): PageParamsEvent;
18
19
  dispatchPageUpdate(params: import("../../contexts/events.context.js").PageDispatchInput): void;
@@ -18,7 +18,7 @@ import "../../components/attraction-card/short/attraction-short-card.js";
18
18
  import { getLocationImageURL } from "../../core/images/helpers.js";
19
19
  import { IMAGE_BASE_URL } from "../../core/images/constants.js";
20
20
  import { BaseMixin } from "../../mixins/base.mixin.js";
21
- import { apiGet, withErrorHandling } from "../../core/api/queries.js";
21
+ import { apiGet } from "../../core/api/queries.js";
22
22
  import { convertToLocaleCurrency } from "../../core/currency/index.js";
23
23
  let CorasSuggestionWidget = class CorasSuggestionWidget extends BaseMixin(LitElement) {
24
24
  constructor() {
@@ -29,13 +29,14 @@ let CorasSuggestionWidget = class CorasSuggestionWidget extends BaseMixin(LitEle
29
29
  this.city = "";
30
30
  this.suggestionsTask = new Task(this, {
31
31
  task: async ([locale, country, city, currency]) => {
32
- return withErrorHandling(apiGet({
32
+ const { data } = await apiGet({
33
33
  client: this.client,
34
34
  distributorID: this.distributorID,
35
35
  locale,
36
36
  endpoint: "/{api_version}/landing",
37
37
  query: { country, city, currency },
38
- }));
38
+ });
39
+ return data;
39
40
  },
40
41
  args: () => [this.locale, this.country, this.city, this.currency],
41
42
  });
@@ -131,8 +132,8 @@ let CorasSuggestionWidget = class CorasSuggestionWidget extends BaseMixin(LitEle
131
132
  return this.suggestionsTask.render({
132
133
  pending: () => this.renderSkeleton(),
133
134
  error: () => nothing,
134
- complete: (result) => {
135
- const section = result.data?.find((candidate) => candidate.type === "short-card");
135
+ complete: (sections) => {
136
+ const section = sections?.find((candidate) => candidate.type === "short-card");
136
137
  const cards = (section?.items ?? []);
137
138
  if (!cards.length) {
138
139
  return nothing;
package/package.json CHANGED
@@ -20,9 +20,9 @@
20
20
  "engines": {
21
21
  "node": ">=22"
22
22
  },
23
- "version": "0.5.1",
23
+ "version": "0.6.0",
24
24
  "private": false,
25
- "homepage": "https://embed.coras.io",
25
+ "homepage": "https://docs.coras.io",
26
26
  "bugs": {
27
27
  "url": "https://embed.coras.io"
28
28
  },
@@ -45,19 +45,23 @@
45
45
  "exports": {
46
46
  ".": {
47
47
  "types": "./dist/index.d.ts",
48
- "import": "./dist/index.js"
48
+ "import": "./dist/index.js",
49
+ "default": "./dist/index.js"
49
50
  },
50
51
  "./url": {
51
52
  "types": "./dist/sdk/url.d.ts",
52
- "import": "./dist/sdk/url.js"
53
+ "import": "./dist/sdk/url.js",
54
+ "default": "./dist/sdk/url.js"
53
55
  },
54
56
  "./helpers": {
55
57
  "types": "./dist/helpers/helpers.d.ts",
56
- "import": "./dist/helpers/helpers.js"
58
+ "import": "./dist/helpers/helpers.js",
59
+ "default": "./dist/helpers/helpers.js"
57
60
  },
58
61
  "./errors": {
59
62
  "types": "./dist/errors.d.ts",
60
- "import": "./dist/errors.js"
63
+ "import": "./dist/errors.js",
64
+ "default": "./dist/errors.js"
61
65
  },
62
66
  "./package.json": "./package.json"
63
67
  },
@@ -69,7 +73,6 @@
69
73
  "@eslint/js": "10.0.1",
70
74
  "@lit/localize-tools": "0.8.2",
71
75
  "@ljcl/storybook-addon-cssprops": "6.1.0",
72
- "@seatsio/seatsio-types": "6.19.0",
73
76
  "@storybook/addon-a11y": "10.5.10",
74
77
  "@storybook/addon-designs": "11.1.4",
75
78
  "@storybook/addon-docs": "10.5.10",
@@ -104,25 +107,25 @@
104
107
  "typescript-eslint": "8.67.0",
105
108
  "vite": "8.2.2",
106
109
  "vitest": "4.1.11",
107
- "@coras-io/static": "0.0.5"
110
+ "@coras-io/static": "0.0.6"
108
111
  },
109
112
  "dependencies": {
110
113
  "@coinbase/cdp-core": "0.0.122",
111
- "@floating-ui/dom": "1.8.0",
112
- "@lit-labs/signals": "^0.3.0",
114
+ "@floating-ui/dom": "^1.8.0",
113
115
  "@lit-labs/virtualizer": "^2.1.1",
114
116
  "@lit/context": "^1.1.6",
115
117
  "@lit/localize": "^0.12.2",
116
118
  "@lit/task": "^1.0.3",
117
- "@stripe/stripe-js": "9.14.0",
118
- "date-fns": "4.4.0",
119
- "date-fns-tz": "3.2.0",
120
- "dompurify": "3.4.14",
121
- "libphonenumber-js": "1.13.11",
119
+ "@seatsio/seatsio-types": "6.19.0",
120
+ "@stripe/stripe-js": "^9.14.0",
121
+ "date-fns": "^4.4.0",
122
+ "date-fns-tz": "^3.2.0",
123
+ "dompurify": "^3.4.14",
124
+ "libphonenumber-js": "^1.13.11",
122
125
  "lit": "^3.3.3",
123
- "openapi-fetch": "0.17.0",
124
- "viem": "2.55.19",
125
- "@coras-io/brand-tokens": "^0.5.0"
126
+ "openapi-fetch": "^0.17.0",
127
+ "viem": "^2.55.19",
128
+ "@coras-io/brand-tokens": "^0.6.0"
126
129
  },
127
130
  "scripts": {
128
131
  "lint": "eslint \"src/**/*.ts*\"",
@@ -133,10 +136,11 @@
133
136
  "clean": "rimraf dist && rimraf node_modules",
134
137
  "prebuild": "rimraf dist node_modules/.cache/embed.tsbuildinfo && pnpm run generate:tokens",
135
138
  "build": "tsc -p tsconfig.build.json",
136
- "build:watch": "tsc --build --watch",
137
- "postbuild": "pnpm run generate-manifest",
139
+ "build:watch": "tsc -p tsconfig.build.json --watch",
140
+ "postbuild": "cp src/core/types/api-schema.d.ts dist/core/types/api-schema.d.ts && pnpm run generate-manifest",
138
141
  "generate-api-schema": "openapi-typescript openapi.schema.json -o ./src/core/types/api-schema.d.ts && eslint --fix src/core/types/api-schema.d.ts && prettier --write src/core/types/api-schema.d.ts",
139
142
  "test": "vitest",
143
+ "pretest:sdk": "pnpm --filter @coras-io/brand-tokens run build",
140
144
  "test:sdk": "vitest run --config vitest.sdk.config.ts",
141
145
  "generate-manifest": "custom-elements-manifest analyze --config cem.config.mjs",
142
146
  "generate:tokens": "node scripts/generate-tokens.mjs",
@@ -1,10 +0,0 @@
1
- import { type CSSResultGroup, LitElement } from "lit";
2
- import "../../image/image.js";
3
- export declare class CorasAttractionDiscoveryImage extends LitElement {
4
- static styles: CSSResultGroup;
5
- imageUrl: string;
6
- width: number;
7
- height: number;
8
- caption: string;
9
- render(): import("lit").TemplateResult<1>;
10
- }
@@ -1,43 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { LitElement, html } from "lit";
8
- import { property } from "lit/decorators.js";
9
- import "../../image/image.js";
10
- import styles from "./attraction-discovery-image.styles.js";
11
- export class CorasAttractionDiscoveryImage extends LitElement {
12
- constructor() {
13
- super(...arguments);
14
- this.imageUrl = "";
15
- this.width = 0;
16
- this.height = 0;
17
- this.caption = "";
18
- }
19
- static { this.styles = styles; }
20
- render() {
21
- return html `
22
- <coras-image
23
- src=${this.imageUrl}
24
- alt=${this.caption}
25
- width=${this.width}
26
- height=${this.height}
27
- widths="280,375,480,640,768"
28
- ></coras-image>
29
- `;
30
- }
31
- }
32
- __decorate([
33
- property({ type: String, attribute: "image-url" })
34
- ], CorasAttractionDiscoveryImage.prototype, "imageUrl", void 0);
35
- __decorate([
36
- property({ type: Number })
37
- ], CorasAttractionDiscoveryImage.prototype, "width", void 0);
38
- __decorate([
39
- property({ type: Number })
40
- ], CorasAttractionDiscoveryImage.prototype, "height", void 0);
41
- __decorate([
42
- property({ type: String })
43
- ], CorasAttractionDiscoveryImage.prototype, "caption", void 0);
@@ -1,8 +0,0 @@
1
- import { CorasAttractionDiscoveryImage } from "./attraction-discovery-image.component.js";
2
- export * from "./attraction-discovery-image.component.js";
3
- export default CorasAttractionDiscoveryImage;
4
- declare global {
5
- interface HTMLElementTagNameMap {
6
- "coras-attraction-discovery-image": CorasAttractionDiscoveryImage;
7
- }
8
- }
@@ -1,6 +0,0 @@
1
- import { CorasAttractionDiscoveryImage } from "./attraction-discovery-image.component.js";
2
- export * from "./attraction-discovery-image.component.js";
3
- export default CorasAttractionDiscoveryImage;
4
- if (!customElements.get("coras-attraction-discovery-image")) {
5
- customElements.define("coras-attraction-discovery-image", CorasAttractionDiscoveryImage);
6
- }
@@ -1,23 +0,0 @@
1
- import { css } from "lit";
2
- import component from "../../../styles/defaults/component.js";
3
- export default css `
4
- ${component}
5
-
6
- :host {
7
- --attraction-discovery-image-border-radius: var(--coras-radius-sm);
8
- --attraction-discovery-image-box-shadow: var(--coras-shadow-strong);
9
- }
10
-
11
- coras-image {
12
- border-radius: var(--attraction-discovery-image-border-radius);
13
- box-shadow: var(--attraction-discovery-image-box-shadow);
14
- }
15
-
16
- coras-image::part(image) {
17
- border-radius: inherit;
18
- }
19
-
20
- :host(:hover) {
21
- cursor: pointer;
22
- }
23
- `;
@@ -1,10 +0,0 @@
1
- import { type CSSResultGroup, LitElement } from "lit";
2
- import "../button/button.js";
3
- import { AttractionDiscoveryLayout } from "./attraction-discovery.constants.js";
4
- export declare class CorasAttractionDiscovery extends LitElement {
5
- static styles: CSSResultGroup;
6
- header: string;
7
- description: string;
8
- layout: AttractionDiscoveryLayout;
9
- render(): import("lit").TemplateResult<1>;
10
- }
@@ -1,52 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { LitElement, html } from "lit";
8
- import { property } from "lit/decorators.js";
9
- import { classMap } from "lit/directives/class-map.js";
10
- import "../button/button.js";
11
- import { AttractionDiscoveryLayout } from "./attraction-discovery.constants.js";
12
- import styles from "./attraction-discovery.styles.js";
13
- export class CorasAttractionDiscovery extends LitElement {
14
- constructor() {
15
- super(...arguments);
16
- this.header = "";
17
- this.description = "";
18
- this.layout = AttractionDiscoveryLayout.IMAGES_ON_THE_LEFT;
19
- }
20
- static { this.styles = styles; }
21
- render() {
22
- const classes = {
23
- inverted: this.layout === AttractionDiscoveryLayout.IMAGES_ON_THE_RIGHT,
24
- ["attraction-discovery"]: true,
25
- };
26
- return html `
27
- <div class="attraction-discovery-container">
28
- <div class=${classMap(classes)}>
29
- <div class="images">
30
- <slot name="images"></slot>
31
- </div>
32
-
33
- <div class="header">${this.header}</div>
34
- <div class="description">${this.description}</div>
35
-
36
- <div class="button">
37
- <slot class="button" name="button"></slot>
38
- </div>
39
- </div>
40
- </div>
41
- `;
42
- }
43
- }
44
- __decorate([
45
- property({ type: String })
46
- ], CorasAttractionDiscovery.prototype, "header", void 0);
47
- __decorate([
48
- property({ type: String })
49
- ], CorasAttractionDiscovery.prototype, "description", void 0);
50
- __decorate([
51
- property({ type: String })
52
- ], CorasAttractionDiscovery.prototype, "layout", void 0);
@@ -1,4 +0,0 @@
1
- export declare enum AttractionDiscoveryLayout {
2
- IMAGES_ON_THE_RIGHT = "images-on-the-right",
3
- IMAGES_ON_THE_LEFT = "images-on-the-left"
4
- }
@@ -1,5 +0,0 @@
1
- export var AttractionDiscoveryLayout;
2
- (function (AttractionDiscoveryLayout) {
3
- AttractionDiscoveryLayout["IMAGES_ON_THE_RIGHT"] = "images-on-the-right";
4
- AttractionDiscoveryLayout["IMAGES_ON_THE_LEFT"] = "images-on-the-left";
5
- })(AttractionDiscoveryLayout || (AttractionDiscoveryLayout = {}));
@@ -1,8 +0,0 @@
1
- import { CorasAttractionDiscovery } from "./attraction-discovery.component.js";
2
- export * from "./attraction-discovery.component.js";
3
- export default CorasAttractionDiscovery;
4
- declare global {
5
- interface HTMLElementTagNameMap {
6
- "coras-attraction-discovery": CorasAttractionDiscovery;
7
- }
8
- }
@@ -1,6 +0,0 @@
1
- import { CorasAttractionDiscovery } from "./attraction-discovery.component.js";
2
- export * from "./attraction-discovery.component.js";
3
- export default CorasAttractionDiscovery;
4
- if (!customElements.get("coras-attraction-discovery")) {
5
- customElements.define("coras-attraction-discovery", CorasAttractionDiscovery);
6
- }