@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
@@ -33,6 +33,8 @@ export declare class CorasActivityDetails extends LitElement {
33
33
  /** Per-attendee phone code selections, keyed by ticket field prefix */
34
34
  private attendeePhoneCodes;
35
35
  private getFieldValue;
36
+ /** The first field currently rendered in an error state, in DOM order. */
37
+ firstInvalidElement(): HTMLElement | null;
36
38
  private handleValueChanged;
37
39
  private getReservationTitle;
38
40
  private renderField;
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import { LitElement, html, nothing } from "lit";
8
8
  import { property } from "lit/decorators.js";
9
9
  import { localized, msg } from "@lit/localize";
10
- import { getFieldValue, getFieldConfig, capitalizeFirstLetter, } from "../../payment-page.utils.js";
10
+ import { getFieldValue, getFieldConfig, capitalizeFirstLetter, INVALID_FIELD_SELECTOR, } from "../../payment-page.utils.js";
11
11
  import { fireInternalEvent } from "../../../../core/events.js";
12
12
  import styles from "./activity-details.styles.js";
13
13
  import "../../../../components/input-field/input-field.js";
@@ -45,6 +45,10 @@ let CorasActivityDetails = class CorasActivityDetails extends LitElement {
45
45
  getFieldValue(fieldName) {
46
46
  return getFieldValue(fieldName, this.formValues);
47
47
  }
48
+ /** The first field currently rendered in an error state, in DOM order. */
49
+ firstInvalidElement() {
50
+ return this.renderRoot.querySelector(INVALID_FIELD_SELECTOR);
51
+ }
48
52
  handleValueChanged(fieldName, value) {
49
53
  fireInternalEvent(this, "value-changed", { fieldName, value });
50
54
  }
@@ -96,9 +100,8 @@ let CorasActivityDetails = class CorasActivityDetails extends LitElement {
96
100
  const selection = event.detail;
97
101
  this.attendeePhoneCodes.set(ticketFieldPrefix, selection);
98
102
  this.requestUpdate();
99
- // Store both country_code (ISO) and phone_code (dial code) as form values
103
+ // The ISO country code is what the attendee phone is normalised with.
100
104
  this.handleValueChanged(`${ticketFieldPrefix}country_code`, selection.code);
101
- this.handleValueChanged(`${ticketFieldPrefix}phone_code`, selection.phoneCode);
102
105
  }
103
106
  renderPhoneField(fieldName, ticketFieldPrefix) {
104
107
  const value = this.getFieldValue(fieldName);
@@ -27,6 +27,8 @@ export declare class CorasBillingAddress extends LitElement {
27
27
  /** Whether to show the email field */
28
28
  showEmail: boolean;
29
29
  private getFieldValue;
30
+ /** The first field currently rendered in an error state, in DOM order. */
31
+ firstInvalidElement(): HTMLElement | null;
30
32
  private handleValueChanged;
31
33
  private renderField;
32
34
  private renderAddressFields;
@@ -8,7 +8,7 @@ import { LitElement, html, nothing } from "lit";
8
8
  import { property } from "lit/decorators.js";
9
9
  import { localized, msg } from "@lit/localize";
10
10
  import { fireInternalEvent } from "../../../../core/events.js";
11
- import { getFieldValue, getFieldConfig } from "../../payment-page.utils.js";
11
+ import { getFieldValue, getFieldConfig, INVALID_FIELD_SELECTOR, } from "../../payment-page.utils.js";
12
12
  import styles from "./billing-address.styles.js";
13
13
  import "../../../../components/input-field/input-field.js";
14
14
  import "../../../../components/joined-fields/joined-fields.js";
@@ -41,6 +41,10 @@ let CorasBillingAddress = class CorasBillingAddress extends LitElement {
41
41
  getFieldValue(fieldName) {
42
42
  return getFieldValue(fieldName, this.formValues);
43
43
  }
44
+ /** The first field currently rendered in an error state, in DOM order. */
45
+ firstInvalidElement() {
46
+ return this.renderRoot.querySelector(INVALID_FIELD_SELECTOR);
47
+ }
44
48
  handleValueChanged(fieldName, value) {
45
49
  fireInternalEvent(this, "value-changed", { fieldName, value });
46
50
  }
@@ -11,6 +11,7 @@ import styles from "./confirmation.styles.js";
11
11
  import "../../../../components/icon/icon.js";
12
12
  import { DEFAULT_LOCALE } from "../../../constants.js";
13
13
  import { convertToLocaleCurrency } from "../../../../core/currency/index.js";
14
+ import { getLoyaltyAmount } from "../../../../core/utils/loyalty.js";
14
15
  import { formatDateTimeForDisplay, formatTimeForDisplay, } from "../../../../core/utils/datetime.js";
15
16
  import { consume } from "@lit/context";
16
17
  import { pageDispatchContext, } from "../../../../contexts/events.context.js";
@@ -142,9 +143,7 @@ let CorasConfirmation = class CorasConfirmation extends LitElement {
142
143
  <div class="info-label">${msg("Amount Paid")}</div>
143
144
  <div class="info-value">
144
145
  ${(() => {
145
- const payAmount = reservation.loyalty?.pay
146
- ? Number(Object.values(reservation.loyalty.pay)[0] ?? 0)
147
- : null;
146
+ const payAmount = getLoyaltyAmount(reservation.loyalty, "pay");
148
147
  return this.loyalty && payAmount
149
148
  ? `${new Intl.NumberFormat(this.locale || navigator.language).format(payAmount)} FIDA`
150
149
  : convertToLocaleCurrency({
@@ -122,7 +122,7 @@ let CorasCountryField = class CorasCountryField extends LitElement {
122
122
  }
123
123
  }
124
124
  _scrollFocusedIntoView() {
125
- this.updateComplete.then(() => {
125
+ void this.updateComplete.then(() => {
126
126
  const container = this.shadowRoot?.querySelector("coras-select-list");
127
127
  const options = container?.querySelectorAll("coras-select-option");
128
128
  const option = options?.[this._focusedIndex];
@@ -77,7 +77,7 @@ let CorasPaymentTypeSelector = class CorasPaymentTypeSelector extends LitElement
77
77
  ${this.loggedIn && this.balance
78
78
  ? html `<coras-message-card
79
79
  variant="info"
80
- title="${msg("Your FIDA balance is")} ${this.balance}"
80
+ heading="${msg("Your FIDA balance is")} ${this.balance}"
81
81
  assets-url=${this.assetsURL}
82
82
  ></coras-message-card>`
83
83
  : nothing}
@@ -108,7 +108,7 @@ let CorasPaymentTypeSelector = class CorasPaymentTypeSelector extends LitElement
108
108
  this.selectedType === "crypto"
109
109
  ? html `<coras-message-card
110
110
  variant="error"
111
- title="${msg("You do not have enough FIDA to Pay in FIDA this time")}"
111
+ heading="${msg("You do not have enough FIDA to Pay in FIDA this time")}"
112
112
  assets-url=${this.assetsURL}
113
113
  >
114
114
  ${msg(str `If you pay in ${this.currency}, you will earn FIDA`)}
@@ -158,7 +158,7 @@ let CorasPaymentTypeSelector = class CorasPaymentTypeSelector extends LitElement
158
158
  render() {
159
159
  return html `
160
160
  <div class="payment-type-selector">
161
- <h2 class="header">Payment</h2>
161
+ <h2 class="header">${msg("Payment")}</h2>
162
162
  ${this.loyaltyPoints ? this.renderPaymentTypeOptions() : nothing}
163
163
  ${this.selectedType === "stripe"
164
164
  ? this.renderPaymentMethodOptions()
@@ -23,6 +23,8 @@ export declare class CorasStripe extends LitElement {
23
23
  private stripe;
24
24
  private elements;
25
25
  private paymentRequest;
26
+ private paymentRequestKey;
27
+ private paymentRequestGeneration;
26
28
  private canMakePayment;
27
29
  private isInitialized;
28
30
  private isLoading;
@@ -36,6 +36,12 @@ let CorasStripe = class CorasStripe extends LitElement {
36
36
  this.stripe = null;
37
37
  this.elements = null;
38
38
  this.paymentRequest = null;
39
+ // Country and currency the current PaymentRequest was built for.
40
+ this.paymentRequestKey = "";
41
+ // Bumped on every PaymentRequest rebuild. Stripe has no way to unsubscribe
42
+ // the old instance, so its late canMakePayment result and paymentmethod
43
+ // events are dropped when their generation is stale.
44
+ this.paymentRequestGeneration = 0;
39
45
  this.canMakePayment = {
40
46
  applePay: false,
41
47
  googlePay: false,
@@ -186,6 +192,11 @@ let CorasStripe = class CorasStripe extends LitElement {
186
192
  options.locale = normalizeLocale(this.locale);
187
193
  }
188
194
  this.stripe = await loadStripe(this.stripeKey, options);
195
+ // The element may have been removed while the script loaded; mounting
196
+ // Elements into detached portals would leak them.
197
+ if (!this.isConnected) {
198
+ return;
199
+ }
189
200
  if (this.stripe) {
190
201
  // Theme the hosted card iframe to match the embed's surface, brand, and
191
202
  // colour scheme (light/dark) - the per-element style only sets text.
@@ -212,23 +223,38 @@ let CorasStripe = class CorasStripe extends LitElement {
212
223
  if (!this.stripe || !this.currency || !this.country) {
213
224
  return;
214
225
  }
226
+ const country = normalizeCountry(this.country);
227
+ const currency = normalizeCurrency(this.currency);
228
+ const key = `${country}:${currency}`;
229
+ if (this.paymentRequest && key === this.paymentRequestKey) {
230
+ return;
231
+ }
232
+ this.paymentRequestKey = key;
233
+ const generation = ++this.paymentRequestGeneration;
215
234
  try {
216
- this.paymentRequest = this.stripe.paymentRequest({
217
- country: normalizeCountry(this.country),
218
- currency: normalizeCurrency(this.currency),
235
+ const paymentRequest = this.stripe.paymentRequest({
236
+ country,
237
+ currency,
219
238
  total: {
220
- label: "Total",
239
+ label: msg("Total"),
221
240
  amount: 100,
222
241
  },
223
242
  requestPayerName: true,
224
243
  requestPayerEmail: true,
225
244
  });
226
- this.paymentRequest.on("paymentmethod", (event) => {
245
+ this.paymentRequest = paymentRequest;
246
+ paymentRequest.on("paymentmethod", (event) => {
247
+ if (generation !== this.paymentRequestGeneration) {
248
+ event.complete("fail");
249
+ return;
250
+ }
227
251
  this.dispatchPaymentMethodAuthorized(event.paymentMethod, event);
228
252
  });
229
- this.paymentRequest
253
+ paymentRequest
230
254
  .canMakePayment()
231
255
  .then((result) => {
256
+ if (generation !== this.paymentRequestGeneration)
257
+ return;
232
258
  const methods = {
233
259
  applePay: !!result?.applePay,
234
260
  googlePay: !!result?.googlePay,
@@ -237,11 +263,14 @@ let CorasStripe = class CorasStripe extends LitElement {
237
263
  this.dispatchCanMakePaymentChange(methods);
238
264
  })
239
265
  .catch(() => {
266
+ if (generation !== this.paymentRequestGeneration)
267
+ return;
240
268
  this.resetWalletPaymentMethods();
241
269
  });
242
270
  }
243
271
  catch {
244
272
  this.paymentRequest = null;
273
+ this.paymentRequestKey = "";
245
274
  this.resetWalletPaymentMethods();
246
275
  }
247
276
  }
@@ -259,7 +288,7 @@ let CorasStripe = class CorasStripe extends LitElement {
259
288
  const colors = extractThemeColors(this);
260
289
  const baseStyle = createStripeElementStyle(colors);
261
290
  // Re-theme on re-init so a colour-scheme change is reflected in the iframe.
262
- this.elements.update({ appearance: buildStripeAppearance(this) });
291
+ void this.elements.update({ appearance: buildStripeAppearance(this) });
263
292
  this.cardNumberElement = this.elements.create("cardNumber", {
264
293
  style: baseStyle,
265
294
  placeholder: PLACEHOLDERS.CARD_NUMBER,
@@ -18,9 +18,6 @@ export function validateStripeKey(key) {
18
18
  // SECURITY: Reject secret keys - they must never be used on the client
19
19
  const isSecretKey = SECRET_KEY_PREFIXES.some((prefix) => key.startsWith(prefix));
20
20
  if (isSecretKey) {
21
- // Log warning without exposing the key
22
- console.error("SECURITY WARNING: Attempted to use a secret key on the client. " +
23
- "Only publishable keys (pk_test_ or pk_live_) should be used in the browser.");
24
21
  return {
25
22
  isValid: false,
26
23
  error: "Invalid key type. Only publishable keys should be used on the client.",
@@ -27,6 +27,7 @@ import "./partials/payment-type-selector/payment-type-selector.js";
27
27
  import "./partials/activity-details/activity-details.js";
28
28
  import "./partials/billing-address/billing-address.js";
29
29
  import type { PageName } from "../../core/types/shared.js";
30
+ import type { Logger } from "../../core/logger.js";
30
31
  declare const CorasPaymentPage_base: import("../../contexts/utils.js").Constructor<import("../../mixins/coinbase.mixin.js").CoinbaseMixinInterface> & import("../../contexts/utils.js").Constructor<import("../../mixins/error-modal.mixin.js").ErrorModalMixinInterface> & import("../../contexts/utils.js").Constructor<{
31
32
  apiHost: string;
32
33
  distributorID: string;
@@ -36,6 +37,7 @@ declare const CorasPaymentPage_base: import("../../contexts/utils.js").Construct
36
37
  locale: import("../../index.js").SupportedLocales;
37
38
  locales: import("../../index.js").SupportedLocales[];
38
39
  loyaltyPoints: boolean;
40
+ logger: Logger;
39
41
  client: import("openapi-fetch").Client<import("../../core/types/api-schema.js").paths>;
40
42
  getPageProperties(): PaymentPageParamsEvent;
41
43
  dispatchPageUpdate(params: import("../../contexts/events.context.js").PageDispatchInput): void;
@@ -44,7 +46,9 @@ declare const CorasPaymentPage_base: import("../../contexts/utils.js").Construct
44
46
  * Payment page component for processing checkout and payments.
45
47
  *
46
48
  * @fires coras:navigate - Dispatched when navigating to another page
47
- * @fires coras:payment-status - Dispatched when a payment attempt changes status
49
+ * @fires coras:payment-status - Dispatched when a payment attempt settles:
50
+ * `succeeded`, `failed`, or `pending` when the charge went through but the
51
+ * API had not confirmed the transaction within the polling budget
48
52
  */
49
53
  export declare class CorasPaymentPage extends CorasPaymentPage_base {
50
54
  static styles: CSSResultGroup;
@@ -55,6 +59,9 @@ export declare class CorasPaymentPage extends CorasPaymentPage_base {
55
59
  cdpProjectId: string;
56
60
  currentPage: PageName;
57
61
  private stripeComponent;
62
+ private billingAddress?;
63
+ private activityDetails?;
64
+ private controllerLogger;
58
65
  private stripeController;
59
66
  private flowController;
60
67
  private formController;
@@ -63,6 +70,9 @@ export declare class CorasPaymentPage extends CorasPaymentPage_base {
63
70
  private cryptoTransferController;
64
71
  /** AbortController for canceling long-running async ops on disconnect. */
65
72
  private abortController;
73
+ /** True once initCoinbase has resolved (and restored any saved session). */
74
+ private cdpReady;
75
+ private pendingTransferRecoveryStarted;
66
76
  private apiService;
67
77
  private getApiService;
68
78
  private showCryptoAuthModal;
@@ -76,12 +86,18 @@ export declare class CorasPaymentPage extends CorasPaymentPage_base {
76
86
  private paymentMethod;
77
87
  private paymentSuccessful;
78
88
  private paymentFailed;
89
+ private paymentPending;
79
90
  private loyaltyPageUrl;
80
91
  private userEmail;
81
92
  private layoutElement;
82
93
  protected updated(changedProperties: PropertyValues<this>): void;
94
+ /**
95
+ * Confirms a transfer that left the wallet before the previous confirmation
96
+ * completed. Runs once, and only when CDP has restored the session and the
97
+ * basket is known, since both are needed for the confirmation request.
98
+ */
99
+ private maybeRecoverPendingTransfer;
83
100
  protected firstUpdated(): void;
84
- connectedCallback(): void;
85
101
  disconnectedCallback(): void;
86
102
  private configTask;
87
103
  private countriesTask;
@@ -98,7 +114,6 @@ export declare class CorasPaymentPage extends CorasPaymentPage_base {
98
114
  private handlePhoneCodeSelection;
99
115
  private handleTermsChange;
100
116
  private handleFidaEmailAgreementChange;
101
- private isValidEmail;
102
117
  private handlePaymentTypeSelected;
103
118
  private handlePaymentMethodSelected;
104
119
  private handleCardValidationChange;
@@ -131,7 +146,6 @@ export declare class CorasPaymentPage extends CorasPaymentPage_base {
131
146
  * This checks for ANY email source (including user input).
132
147
  */
133
148
  private hasCryptoEmail;
134
- private renderCryptoWalletInfo;
135
149
  private renderPaymentDetailsStep;
136
150
  private handleCryptoAuthCancelled;
137
151
  private _resetMfaPhoneState;
@@ -173,14 +187,27 @@ export declare class CorasPaymentPage extends CorasPaymentPage_base {
173
187
  * Prepares attendee data for the attendees field in the PUT request to /reservations
174
188
  */
175
189
  private prepareAttendeesData;
190
+ /**
191
+ * PATCHes the chosen pickup point onto every reservation that requires one.
192
+ * Returns the form field names whose PATCH failed (empty when all saved).
193
+ */
194
+ private savePickupPoints;
176
195
  /**
177
196
  * Confirms the reservation with the API
178
197
  */
179
198
  private confirmReservation;
180
199
  private checkTransactionStatus;
200
+ /**
201
+ * Moves the page to the outcome of a polled transaction status. Only a
202
+ * final non-PAID status is a failure; anything else after the polling
203
+ * budget is pending and keeps the reference for a later check.
204
+ */
205
+ private settleTransaction;
206
+ private handleCheckAgain;
181
207
  /**
182
208
  * Sanitizes error objects to prevent leaking internal/SDK details to the user.
183
- * Only allows structured ApiError objects through; replaces unknown shapes.
209
+ * Only a structured `{ errors }` body maps to fields; anything else (5xx,
210
+ * text body, network failure) returns null so the generic card error shows.
184
211
  */
185
212
  private sanitizeError;
186
213
  /**
@@ -208,7 +235,14 @@ export declare class CorasPaymentPage extends CorasPaymentPage_base {
208
235
  private renderContent;
209
236
  private getLoyaltyAccountUrl;
210
237
  private renderSuccess;
238
+ private renderPending;
211
239
  private renderFailure;
240
+ /**
241
+ * Re-runs whichever page task failed. The modal is also shown for crypto
242
+ * transfer failures, where no task is in error; re-checking the reservations
243
+ * then refreshes the requirements without losing the form.
244
+ */
245
+ private retryFailedTask;
212
246
  private renderReservationsTask;
213
247
  private renderReservations;
214
248
  private renderEmptyBasket;
@@ -225,7 +259,6 @@ export declare class CorasPaymentPage extends CorasPaymentPage_base {
225
259
  private handleResendCode;
226
260
  private handleLogin;
227
261
  private startCryptoTransfer;
228
- private recoverPendingTransfer;
229
262
  private handleMfaCodeSubmitted;
230
263
  private handleMfaResendRequested;
231
264
  private handleTransferCancelled;