@zonos/elements 1.3.218 → 1.3.219

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 (397) hide show
  1. package/dist/cjs/buildCartItemsByTempCart-309fcebf.js +28 -0
  2. package/dist/cjs/{cart-c54d05ce.js → cart-9a2b32e4.js} +90 -47
  3. package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
  4. package/dist/cjs/index.cjs.js +19 -9
  5. package/dist/cjs/isCollectMobileTablet-7e57fd90.js +172 -0
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/localization-b12edb2a.js +738 -0
  8. package/dist/cjs/{paypal-d36b5dd1.js → paypal-e80871d0.js} +12 -8
  9. package/dist/cjs/placeTestOrder-8222fe95.js +93 -0
  10. package/dist/cjs/{localization-ab7e1902.js → translationStore-20a6d8bf.js} +963 -734
  11. package/dist/cjs/zonos-address_11.cjs.entry.js +102 -72
  12. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  13. package/dist/cjs/{zonos-banner.cjs.entry.js → zonos-banner_2.cjs.entry.js} +40 -0
  14. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  15. package/dist/cjs/{zonos-cart-items_14.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +73 -1292
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +25 -48
  17. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +92 -0
  19. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +810 -0
  20. package/dist/cjs/zonos-collect.cjs.entry.js +468 -0
  21. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +168 -0
  23. package/dist/cjs/zonos-controller.cjs.entry.js +84 -28
  24. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -1
  25. package/dist/cjs/zonos-country-select_4.cjs.entry.js +11 -10
  26. package/dist/cjs/zonos-elements.cjs.js +1 -1
  27. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +15 -5
  28. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +34 -33
  29. package/dist/cjs/zonos-hello.cjs.entry.js +8 -7
  30. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  31. package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -5
  32. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  33. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -5
  35. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  36. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  37. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  38. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  39. package/dist/collection/collection-manifest.json +10 -0
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +3 -0
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -1
  43. package/dist/collection/components/checkout/zonos-collect/assets/ChevronDownIcon.svg +1 -0
  44. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/assets/empty-item.jpeg +0 -0
  45. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.css +60 -0
  46. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +39 -0
  47. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/RemoveIcon.svg +1 -0
  48. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/SuccessIcon.svg +1 -0
  49. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +84 -0
  50. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +403 -0
  51. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/chevronDownIcon.svg +1 -0
  52. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/globe.svg +3 -0
  53. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconDark.svg +10 -0
  54. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconLight.svg +10 -0
  55. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosWordmark.svg +7 -0
  56. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +152 -0
  57. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +164 -0
  58. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronDownIcon.svg +1 -0
  59. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronUpIcon.svg +1 -0
  60. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.css +109 -0
  61. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +194 -0
  62. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/CheckmarkLineIcon.svg +1 -0
  63. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/RemoveLineIcon.svg +1 -0
  64. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +98 -0
  65. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +369 -0
  66. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +68 -0
  67. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +151 -0
  68. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.css +78 -0
  69. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +115 -0
  70. package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +349 -0
  71. package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +547 -0
  72. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  73. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  74. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  75. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  76. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  77. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  78. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  79. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  80. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  81. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  82. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.css +38 -0
  83. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +63 -0
  84. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  85. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  86. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  87. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  88. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  89. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  90. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  91. package/dist/collection/components/common/zonos-skeleton/assets/RemoveLineIcon.svg +3 -0
  92. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.css +40 -0
  93. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +102 -0
  94. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +8 -5
  95. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  96. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  97. package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
  98. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  99. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  100. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  101. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  102. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  103. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  104. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  105. package/dist/collection/components/main/zonos-controller.js +91 -25
  106. package/dist/collection/components/paypal/zonos-paypal-payment.js +13 -2
  107. package/dist/collection/components/store/checkout/cart.js +36 -15
  108. package/dist/collection/components/store/checkout/collect.js +157 -0
  109. package/dist/collection/components/store/checkout/paypal.js +4 -2
  110. package/dist/collection/components/store/checkout/stripe.js +31 -12
  111. package/dist/collection/components/store/translationStore/strings.arabic.js +48 -0
  112. package/dist/collection/components/store/translationStore/strings.base.js +48 -0
  113. package/dist/collection/components/store/translationStore/strings.chinese.js +48 -0
  114. package/dist/collection/components/store/translationStore/strings.danish.js +48 -0
  115. package/dist/collection/components/store/translationStore/strings.dutch.js +48 -0
  116. package/dist/collection/components/store/translationStore/strings.french.js +48 -0
  117. package/dist/collection/components/store/translationStore/strings.german.js +48 -0
  118. package/dist/collection/components/store/translationStore/strings.hebrew.js +48 -0
  119. package/dist/collection/components/store/translationStore/strings.indonesian.js +48 -0
  120. package/dist/collection/components/store/translationStore/strings.italian.js +48 -0
  121. package/dist/collection/components/store/translationStore/strings.japanese.js +48 -0
  122. package/dist/collection/components/store/translationStore/strings.korean.js +48 -0
  123. package/dist/collection/components/store/translationStore/strings.norwegian.js +48 -0
  124. package/dist/collection/components/store/translationStore/strings.polish.js +48 -0
  125. package/dist/collection/components/store/translationStore/strings.portuguese.js +48 -0
  126. package/dist/collection/components/store/translationStore/strings.russian.js +48 -0
  127. package/dist/collection/components/store/translationStore/strings.spanish.js +48 -0
  128. package/dist/collection/components/store/translationStore/strings.swedish.js +48 -0
  129. package/dist/collection/components/store/translationStore/strings.turkish.js +48 -0
  130. package/dist/collection/components/store/translationStore/strings.vietnamese.js +48 -0
  131. package/dist/collection/components/store/translationStore.js +2 -1
  132. package/dist/collection/components/stripe/zonos-address/zonos-address.js +35 -18
  133. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  134. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  135. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +15 -2
  136. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  137. package/dist/collection/components/utils/checkout/initCollect.js +15 -0
  138. package/dist/collection/components/utils/checkout/isCollectMobileTablet.js +10 -0
  139. package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -1
  140. package/dist/collection/components/utils/renderFallback.js +7 -0
  141. package/dist/collection/scripts/_getZonosQaUrl.js +5 -1
  142. package/dist/collection/scripts/_zonosBase.js +7 -1
  143. package/dist/collection/types/checkout/api/PartyInfo.js +1 -0
  144. package/dist/collection/types/generated/graphql.internal.types.js +103 -0
  145. package/dist/collection/types/index.js +1 -0
  146. package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
  147. package/dist/esm/{cart-bb0ee971.js → cart-acf4ebf5.js} +68 -27
  148. package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
  149. package/dist/esm/index.js +19 -9
  150. package/dist/esm/isCollectMobileTablet-b72b81c5.js +165 -0
  151. package/dist/esm/loader.js +1 -1
  152. package/dist/esm/localization-8646f526.js +719 -0
  153. package/dist/esm/{paypal-bd4520eb.js → paypal-2fa930eb.js} +7 -4
  154. package/dist/esm/placeTestOrder-d1ad9cf6.js +90 -0
  155. package/dist/esm/{localization-d8326254.js → translationStore-c9743292.js} +963 -718
  156. package/dist/esm/zonos-address_11.entry.js +71 -41
  157. package/dist/esm/zonos-badge.entry.js +3 -3
  158. package/dist/esm/{zonos-banner.entry.js → zonos-banner_2.entry.js} +40 -1
  159. package/dist/esm/zonos-button_3.entry.js +3 -3
  160. package/dist/esm/{zonos-cart-items_14.entry.js → zonos-cart-items_12.entry.js} +23 -1240
  161. package/dist/esm/zonos-checkout.entry.js +6 -29
  162. package/dist/esm/zonos-collapse.entry.js +2 -2
  163. package/dist/esm/zonos-collect-cart-items_3.entry.js +86 -0
  164. package/dist/esm/zonos-collect-finish_6.entry.js +801 -0
  165. package/dist/esm/zonos-collect.entry.js +464 -0
  166. package/dist/esm/zonos-component.entry.js +1 -1
  167. package/dist/esm/zonos-confirm-dialog_2.entry.js +163 -0
  168. package/dist/esm/zonos-controller.entry.js +84 -28
  169. package/dist/esm/zonos-country-flag.entry.js +2 -1
  170. package/dist/esm/zonos-country-select_4.entry.js +11 -10
  171. package/dist/esm/zonos-elements.js +1 -1
  172. package/dist/esm/zonos-empty-state-payment_4.entry.js +15 -5
  173. package/dist/esm/zonos-hello-dialog.entry.js +6 -5
  174. package/dist/esm/zonos-hello.entry.js +2 -1
  175. package/dist/esm/zonos-input.entry.js +4 -4
  176. package/dist/esm/zonos-language-select_2.entry.js +6 -5
  177. package/dist/esm/zonos-link.entry.js +1 -1
  178. package/dist/esm/zonos-logo.entry.js +2 -2
  179. package/dist/esm/zonos-stripe-input.entry.js +9 -6
  180. package/dist/esm/zonos-text.entry.js +1 -1
  181. package/dist/esm/zonos-toggle.entry.js +2 -2
  182. package/dist/esm/zonos-tooltip.entry.js +2 -2
  183. package/dist/esm/zonos-v-stack.entry.js +2 -2
  184. package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +1 -0
  185. package/dist/esm-es5/cart-acf4ebf5.js +1 -0
  186. package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +1 -0
  187. package/dist/esm-es5/index.js +1 -1
  188. package/dist/esm-es5/isCollectMobileTablet-b72b81c5.js +1 -0
  189. package/dist/esm-es5/loader.js +1 -1
  190. package/dist/esm-es5/localization-8646f526.js +1 -0
  191. package/dist/esm-es5/paypal-2fa930eb.js +17 -0
  192. package/dist/esm-es5/placeTestOrder-d1ad9cf6.js +1 -0
  193. package/dist/esm-es5/translationStore-c9743292.js +1 -0
  194. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  195. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  196. package/dist/esm-es5/zonos-banner_2.entry.js +1 -0
  197. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  198. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
  199. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  200. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  201. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -0
  202. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -0
  203. package/dist/esm-es5/zonos-collect.entry.js +1 -0
  204. package/dist/esm-es5/zonos-component.entry.js +1 -1
  205. package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -0
  206. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  207. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  208. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  209. package/dist/esm-es5/zonos-elements.js +1 -1
  210. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  211. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  212. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  213. package/dist/esm-es5/zonos-input.entry.js +1 -1
  214. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  215. package/dist/esm-es5/zonos-link.entry.js +1 -1
  216. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  217. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  218. package/dist/esm-es5/zonos-text.entry.js +1 -1
  219. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  220. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  221. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  222. package/dist/scripts/index.d.ts +470 -3
  223. package/dist/scripts/index.js +1 -1
  224. package/dist/scripts/loadZonos.js +1 -1
  225. package/dist/scripts/zonos.js +1 -1
  226. package/dist/types/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.d.ts +4 -0
  227. package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +49 -0
  228. package/dist/types/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.d.ts +25 -0
  229. package/dist/types/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.d.ts +29 -0
  230. package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +62 -0
  231. package/dist/types/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.d.ts +22 -0
  232. package/dist/types/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.d.ts +10 -0
  233. package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +86 -0
  234. package/dist/types/components/common/zonos-h-stack/zonos-h-stack.d.ts +9 -0
  235. package/dist/types/components/common/zonos-skeleton/zonos-skeleton.d.ts +17 -0
  236. package/dist/types/components/main/zonos-controller.d.ts +5 -0
  237. package/dist/types/components/paypal/zonos-paypal-payment.d.ts +3 -0
  238. package/dist/types/components/store/checkout/cart.d.ts +23 -3
  239. package/dist/types/components/store/checkout/collect.d.ts +21 -0
  240. package/dist/types/components/store/checkout/paypal.d.ts +4 -3
  241. package/dist/types/components/store/checkout/stripe.d.ts +6 -2
  242. package/dist/types/components/store/translationStore/strings.arabic.d.ts +48 -0
  243. package/dist/types/components/store/translationStore/strings.base.d.ts +48 -0
  244. package/dist/types/components/store/translationStore/strings.chinese.d.ts +48 -0
  245. package/dist/types/components/store/translationStore/strings.danish.d.ts +48 -0
  246. package/dist/types/components/store/translationStore/strings.dutch.d.ts +48 -0
  247. package/dist/types/components/store/translationStore/strings.french.d.ts +48 -0
  248. package/dist/types/components/store/translationStore/strings.german.d.ts +48 -0
  249. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +48 -0
  250. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +48 -0
  251. package/dist/types/components/store/translationStore/strings.italian.d.ts +48 -0
  252. package/dist/types/components/store/translationStore/strings.japanese.d.ts +48 -0
  253. package/dist/types/components/store/translationStore/strings.korean.d.ts +48 -0
  254. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +48 -0
  255. package/dist/types/components/store/translationStore/strings.polish.d.ts +48 -0
  256. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +48 -0
  257. package/dist/types/components/store/translationStore/strings.russian.d.ts +48 -0
  258. package/dist/types/components/store/translationStore/strings.spanish.d.ts +48 -0
  259. package/dist/types/components/store/translationStore/strings.swedish.d.ts +48 -0
  260. package/dist/types/components/store/translationStore/strings.turkish.d.ts +48 -0
  261. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +48 -0
  262. package/dist/types/components/store/translationStore.d.ts +2 -1
  263. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -2
  264. package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +2 -0
  265. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  266. package/dist/types/components/utils/checkout/initCollect.d.ts +1 -0
  267. package/dist/types/components/utils/checkout/isCollectMobileTablet.d.ts +4 -0
  268. package/dist/types/components/utils/renderFallback.d.ts +6 -0
  269. package/dist/types/components.d.ts +401 -2
  270. package/dist/types/scripts/_zonosBase.d.ts +5 -0
  271. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
  272. package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
  273. package/dist/types/types/checkout/api/CreateParty.d.ts +24 -0
  274. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -1
  275. package/dist/types/types/checkout/api/PartyInfo.d.ts +24 -0
  276. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  277. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  278. package/dist/types/types/generated/graphql.internal.types.d.ts +431 -9
  279. package/dist/types/types/generated/graphql.internal.types.ts +428 -10
  280. package/dist/types/types/index.d.ts +1 -0
  281. package/dist/zonos-elements/index.esm.js +1 -1
  282. package/dist/zonos-elements/{p-288761b1.system.entry.js → p-009c3ac5.system.entry.js} +1 -1
  283. package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-03980f76.entry.js} +1 -1
  284. package/dist/zonos-elements/p-07bea979.system.js +1 -0
  285. package/dist/zonos-elements/p-0cec2dd2.system.entry.js +1 -0
  286. package/dist/zonos-elements/p-0d6c6a38.entry.js +1 -0
  287. package/dist/zonos-elements/p-0ef2a242.js +1 -0
  288. package/dist/zonos-elements/p-106ae0f1.entry.js +1 -0
  289. package/dist/zonos-elements/p-10797d2b.system.entry.js +1 -0
  290. package/dist/zonos-elements/p-195b33b6.system.entry.js +1 -0
  291. package/dist/zonos-elements/p-1fe5d4da.system.entry.js +1 -0
  292. package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-2323ff0f.system.entry.js} +1 -1
  293. package/dist/zonos-elements/p-23293a0b.entry.js +1 -0
  294. package/dist/zonos-elements/{p-62813488.entry.js → p-23735db6.entry.js} +1 -1
  295. package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-26573347.entry.js} +1 -1
  296. package/dist/zonos-elements/{p-e640e8b8.entry.js → p-29499a5f.entry.js} +1 -1
  297. package/dist/zonos-elements/p-29c80a34.js +1 -0
  298. package/dist/zonos-elements/{p-edc77ea1.entry.js → p-2a9681b4.entry.js} +1 -1
  299. package/dist/zonos-elements/{p-3f31901f.entry.js → p-2c9381be.entry.js} +1 -1
  300. package/dist/zonos-elements/p-2cc031b3.js +17 -0
  301. package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-34a37ce7.system.entry.js} +1 -1
  302. package/dist/zonos-elements/p-3c9714a8.system.entry.js +1 -0
  303. package/dist/zonos-elements/p-485416ec.js +1 -0
  304. package/dist/zonos-elements/p-56ee6d4b.system.entry.js +1 -0
  305. package/dist/zonos-elements/p-58afbe2b.entry.js +1 -0
  306. package/dist/zonos-elements/p-5e372fb9.entry.js +1 -0
  307. package/dist/zonos-elements/p-5ff4f9df.system.js +1 -0
  308. package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-60c61982.system.entry.js} +1 -1
  309. package/dist/zonos-elements/p-61c2c336.entry.js +1 -0
  310. package/dist/zonos-elements/p-6696617a.system.entry.js +1 -0
  311. package/dist/zonos-elements/p-6761091e.entry.js +1 -0
  312. package/dist/zonos-elements/p-6761286d.js +1 -0
  313. package/dist/zonos-elements/p-69451a50.system.js +1 -0
  314. package/dist/zonos-elements/p-69fd1b88.js +1 -0
  315. package/dist/zonos-elements/p-6dd63754.system.js +1 -0
  316. package/dist/zonos-elements/p-6e8aae27.system.entry.js +1 -0
  317. package/dist/zonos-elements/{p-1c45cd15.entry.js → p-70b81bbc.entry.js} +1 -1
  318. package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-750b7f32.system.entry.js} +1 -1
  319. package/dist/zonos-elements/p-772ac0b7.js +1 -0
  320. package/dist/zonos-elements/p-81b357f7.system.js +1 -1
  321. package/dist/zonos-elements/p-81e23f30.system.js +1 -0
  322. package/dist/zonos-elements/p-873b698a.entry.js +1 -0
  323. package/dist/zonos-elements/p-87e2a777.entry.js +1 -0
  324. package/dist/zonos-elements/p-8ca25e6c.entry.js +1 -0
  325. package/dist/zonos-elements/p-909d36bf.entry.js +1 -0
  326. package/dist/zonos-elements/p-95461a1b.system.entry.js +1 -0
  327. package/dist/zonos-elements/p-986ebccc.js +1 -0
  328. package/dist/zonos-elements/p-9c0b78bf.system.entry.js +1 -0
  329. package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
  330. package/dist/zonos-elements/p-a7204d41.entry.js +1 -0
  331. package/dist/zonos-elements/p-aca272ea.entry.js +1 -0
  332. package/dist/zonos-elements/p-b12ec9f2.system.entry.js +1 -0
  333. package/dist/zonos-elements/p-b1bd9fe7.system.entry.js +1 -0
  334. package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
  335. package/dist/zonos-elements/{p-77666360.entry.js → p-b5406d26.entry.js} +1 -1
  336. package/dist/zonos-elements/p-bfbc081f.entry.js +1 -0
  337. package/dist/zonos-elements/p-c0a54cf6.system.js +1 -0
  338. package/dist/zonos-elements/p-c3c9b089.entry.js +1 -0
  339. package/dist/zonos-elements/p-c8784a01.system.entry.js +1 -0
  340. package/dist/zonos-elements/{p-7b5de646.entry.js → p-d045e2e5.entry.js} +1 -1
  341. package/dist/zonos-elements/p-d26cffba.entry.js +1 -0
  342. package/dist/zonos-elements/{p-544c173a.system.entry.js → p-d351ece6.system.entry.js} +1 -1
  343. package/dist/zonos-elements/p-d63696ac.system.js +17 -0
  344. package/dist/zonos-elements/p-ddb29c2a.system.entry.js +1 -0
  345. package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-dfb92907.entry.js} +1 -1
  346. package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-e2a45188.system.entry.js} +1 -1
  347. package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-e455f060.system.entry.js} +1 -1
  348. package/dist/zonos-elements/p-eb54ece4.system.entry.js +1 -0
  349. package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
  350. package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-f0be0ca9.system.entry.js} +1 -1
  351. package/dist/zonos-elements/p-f129a83b.system.entry.js +1 -0
  352. package/dist/zonos-elements/p-f17fde5f.system.js +1 -0
  353. package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-f74a6b78.system.entry.js} +1 -1
  354. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  355. package/package.json +1 -1
  356. package/dist/cjs/zonos-card.cjs.entry.js +0 -49
  357. package/dist/esm/zonos-card.entry.js +0 -45
  358. package/dist/esm-es5/cart-bb0ee971.js +0 -1
  359. package/dist/esm-es5/localization-d8326254.js +0 -1
  360. package/dist/esm-es5/paypal-bd4520eb.js +0 -17
  361. package/dist/esm-es5/zonos-banner.entry.js +0 -1
  362. package/dist/esm-es5/zonos-card.entry.js +0 -1
  363. package/dist/esm-es5/zonos-cart-items_14.entry.js +0 -1
  364. package/dist/zonos-elements/p-043f57e8.system.entry.js +0 -1
  365. package/dist/zonos-elements/p-0631d2b9.js +0 -1
  366. package/dist/zonos-elements/p-0a6ac265.system.js +0 -1
  367. package/dist/zonos-elements/p-0f041dc5.system.entry.js +0 -1
  368. package/dist/zonos-elements/p-1432a217.system.entry.js +0 -1
  369. package/dist/zonos-elements/p-1b51b738.system.entry.js +0 -1
  370. package/dist/zonos-elements/p-3a1513ae.system.entry.js +0 -1
  371. package/dist/zonos-elements/p-3b8d11dd.entry.js +0 -1
  372. package/dist/zonos-elements/p-4333afcb.entry.js +0 -1
  373. package/dist/zonos-elements/p-4d0d89da.system.entry.js +0 -1
  374. package/dist/zonos-elements/p-5dd9cb44.system.entry.js +0 -1
  375. package/dist/zonos-elements/p-605a21ac.entry.js +0 -1
  376. package/dist/zonos-elements/p-674981ad.system.js +0 -1
  377. package/dist/zonos-elements/p-6d090b53.entry.js +0 -1
  378. package/dist/zonos-elements/p-73c8c551.system.entry.js +0 -1
  379. package/dist/zonos-elements/p-795d223d.entry.js +0 -1
  380. package/dist/zonos-elements/p-8218ff62.system.entry.js +0 -1
  381. package/dist/zonos-elements/p-82f80c8a.entry.js +0 -1
  382. package/dist/zonos-elements/p-88f7256d.js +0 -1
  383. package/dist/zonos-elements/p-8b083884.entry.js +0 -1
  384. package/dist/zonos-elements/p-a449940d.entry.js +0 -1
  385. package/dist/zonos-elements/p-a5a4ad2f.entry.js +0 -1
  386. package/dist/zonos-elements/p-a5d45585.system.entry.js +0 -1
  387. package/dist/zonos-elements/p-a751e819.system.entry.js +0 -1
  388. package/dist/zonos-elements/p-ad556be6.entry.js +0 -1
  389. package/dist/zonos-elements/p-b4792af0.entry.js +0 -1
  390. package/dist/zonos-elements/p-b9ff6458.entry.js +0 -1
  391. package/dist/zonos-elements/p-d3dbae8c.system.js +0 -1
  392. package/dist/zonos-elements/p-d55aec11.system.entry.js +0 -1
  393. package/dist/zonos-elements/p-ebb9b902.system.js +0 -17
  394. package/dist/zonos-elements/p-ef1ce617.system.entry.js +0 -1
  395. package/dist/zonos-elements/p-ef75da6f.js +0 -17
  396. package/dist/zonos-elements/p-f3dbe934.entry.js +0 -1
  397. package/dist/zonos-elements/p-f741407e.system.entry.js +0 -1
@@ -0,0 +1,86 @@
1
+ import type { PaymentIntent, Stripe } from '@stripe/stripe-js';
2
+ export declare class ZonosCollect {
3
+ private storeUnsubscribeList;
4
+ /**
5
+ * Listener for locale change in localization store
6
+ */
7
+ private onChangeLocaleListener;
8
+ /**
9
+ * Flag to determine if the checkout is on mobile
10
+ */
11
+ mobile: boolean;
12
+ /**
13
+ * Whether or not the component is being rendered with tablet styles
14
+ */
15
+ tablet: boolean;
16
+ /**
17
+ * The stripe instance
18
+ */
19
+ stripe: Stripe | null;
20
+ /**
21
+ * Whether or not the language dialog is open
22
+ */
23
+ showLanguageDialogMobile: boolean;
24
+ /**
25
+ * Whether or not the submit button is loading in `step` component
26
+ */
27
+ submitLoading: boolean;
28
+ collapseReview: boolean;
29
+ isMobile: boolean;
30
+ isTablet: boolean;
31
+ zonosReviewRef?: HTMLZonosReviewElement;
32
+ /**
33
+ * For storybook to set to finish step, this is to trigger in the story for zonos-checkout-finish
34
+ */
35
+ storybookPaymentStatusOverride?: PaymentIntent['status'];
36
+ isOverlayLoading: boolean;
37
+ /**
38
+ * Confirm dialog open state
39
+ */
40
+ isCartCollected: boolean;
41
+ /**
42
+ * Cart expired state to show the cart expired dialog
43
+ */
44
+ isCartExpired: boolean;
45
+ /**
46
+ * Pay in USD confirm dialog open state
47
+ */
48
+ payInUsdConfirmDialogOpen: boolean;
49
+ /**
50
+ * Error message from onInventoryCheck callback
51
+ */
52
+ inventoryCheckErrorMessage: string | null;
53
+ /**
54
+ * Confirmation id for collect finish component
55
+ */
56
+ confirmationId: string | null;
57
+ /**
58
+ * Client secret value
59
+ */
60
+ clientSecret: string | null;
61
+ /**
62
+ * Client secret value of customer session (use to load saved payment method and render saved consent)
63
+ */
64
+ stripeCustomerSessionClientSecret: string | null;
65
+ /**
66
+ * Listen to resize event to update the isMobile state
67
+ */
68
+ resizeListener(): void;
69
+ private getBaseCurrencySettlementInfo;
70
+ private applyStripeTheme;
71
+ /**
72
+ * For storybook to set to finish step, this is to trigger in the story for zonos-checkout-finish
73
+ */
74
+ private setToFinishStep;
75
+ private fetchCheckoutSession;
76
+ /**
77
+ * Check if stripe payment intent is succeeded or in a good state to move forward
78
+ */
79
+ private checkStripePaymentIntentStatus;
80
+ private initCollectCart;
81
+ private toggleLanguageDialog;
82
+ private handleStripePaymentContinue;
83
+ componentWillLoad(): void;
84
+ disconnectedCallback(): void;
85
+ render(): any;
86
+ }
@@ -0,0 +1,9 @@
1
+ import type { GridSpacing } from "../../../types/styles/GridSpacing";
2
+ export declare class HStack {
3
+ /**
4
+ * The spacing between elements in the stack
5
+ * @default 24
6
+ */
7
+ spacing: GridSpacing;
8
+ render(): any;
9
+ }
@@ -0,0 +1,17 @@
1
+ export declare class ZonosSkeleton {
2
+ /**
3
+ * The width of the skeleton
4
+ * @default '100%'
5
+ */
6
+ skeletonWidth: string;
7
+ /**
8
+ * The height of the skeleton
9
+ * @default '14px'
10
+ */
11
+ skeletonHeight?: string;
12
+ /**
13
+ * Callback for when the skeleton is dismissed. Also determines if dismiss icon shown.
14
+ */
15
+ dismissHandler?: () => void;
16
+ render(): any;
17
+ }
@@ -29,6 +29,10 @@ export declare class ZonosController {
29
29
  * Method to initialize checkout element
30
30
  */
31
31
  initCheckoutElement(stripe: Stripe): Promise<void>;
32
+ /**
33
+ * Method to initialize Collect element
34
+ */
35
+ initCollectElement(stripe: Stripe): Promise<void>;
32
36
  /**
33
37
  * Init zonos notification
34
38
  */
@@ -44,6 +48,7 @@ export declare class ZonosController {
44
48
  private initHistoryListener;
45
49
  private injectCustomHTML;
46
50
  private initGooglePlacesService;
51
+ private buildBaseConfig;
47
52
  componentWillLoad(): Promise<void>;
48
53
  /**
49
54
  * Show notification
@@ -1,5 +1,6 @@
1
1
  import { type EventEmitter } from '../../stencil-public-runtime';
2
2
  export declare class ZonosPaypalPayment {
3
+ private storeUnsubscribeList;
3
4
  el: HTMLZonosPaypalPaymentElement;
4
5
  /**
5
6
  * Event to emit when the paypal session is done
@@ -12,6 +13,8 @@ export declare class ZonosPaypalPayment {
12
13
  */
13
14
  paypalSessionFail: EventEmitter<void>;
14
15
  private loadPaypal;
16
+ componentWillLoad(): void;
15
17
  componentDidLoad(): void;
18
+ disconnectedCallback(): void;
16
19
  render(): any;
17
20
  }
@@ -1,3 +1,4 @@
1
+ import { stripeStoreUpdateCheckoutSession } from "./stripe";
1
2
  import type { CalculateLandedCostMutation, CartQuery, CheckoutPresentmentFragment, CheckoutSessionDetailsFragment, CountryCode, CurrencyCode, IncotermCode, ItemMeasurementType, ItemType, ItemUnitOfMeasure, LandedCostFragment, ShipmentRatingFragment } from "../../../types/generated/graphql.internal.types";
2
3
  type Step = 'customer-info' | 'shipping' | 'payment' | 'finish' | 'error';
3
4
  export type TabItem = {
@@ -193,16 +194,29 @@ declare const cartStoreApplySubtotals: ({ dutiesTaxesFeesEstimate, method, subto
193
194
  method: IncotermCode;
194
195
  subtotals: CartSubtotals;
195
196
  }) => void;
197
+ type CartStoreRecalculateTotalParams = Omit<Parameters<typeof stripeStoreUpdateCheckoutSession>[0], 'id' | 'presentmentCountryCode'> & {
198
+ dutiesTaxesFeesEstimate?: number;
199
+ shouldInitSessionOnFailure?: boolean;
200
+ };
196
201
  /**
197
202
  * Detect if there are any items in cart that are not restricted and have positive amount, exclude negative amount items
198
203
  */
199
204
  declare const cartStoreHasOneEligibleItem: () => boolean;
200
205
  declare const cartStoreSetCheckoutSession: (checkoutSession: CheckoutSessionDetailsFragment) => void;
206
+ declare const cartStoreReCalculateTotal: ({ adjustmentsAmount, cartId, currency, dutiesTaxesFeesEstimate, itemsAmount, landedCostId, shouldInitSessionOnFailure, }: CartStoreRecalculateTotalParams) => Promise<boolean>;
201
207
  /**
202
208
  * For some service levels, the landed cost that's DAP and we do remittance on behalf of the merchant, these landed cost should be treated as DDP
203
209
  */
204
210
  declare const cartStoreGetMethod: (landedCost: LandedCostFragment) => IncotermCode;
205
- declare const cartStoreUpdateSelectedShippingOption: (selectedShippingOption: ShipmentRatingFragment, landedCostId: string) => Promise<boolean>;
211
+ declare const cartStoreUpdateSelectedShippingOption: ({ applySubtotalsOnly, landedCostId, selectedShippingOption, }: {
212
+ /**
213
+ * Whether or not to only apply subtotals to cartStore and not update checkout session with the selected landed cost
214
+ * @default false "Sending a request to update checkout session with the selected landed cost"
215
+ */
216
+ applySubtotalsOnly?: boolean;
217
+ landedCostId: string;
218
+ selectedShippingOption: ShipmentRatingFragment;
219
+ }) => Promise<boolean>;
206
220
  declare const cartStoreStartCheckoutInterval: ({ isPreview, sessionTimeout, }: {
207
221
  isPreview: boolean;
208
222
  /**
@@ -212,11 +226,17 @@ declare const cartStoreStartCheckoutInterval: ({ isPreview, sessionTimeout, }: {
212
226
  }) => void;
213
227
  declare const cartStoreClearCheckoutInterval: () => void;
214
228
  declare const cartStoreResetCartItems: () => void;
215
- declare const cartStoreUpdateItems: ({ adjustments, cartItems, }: {
229
+ declare const cartStoreUpdateItems: ({ adjustments, cartItems, landedCostId, shouldInitSessionOnFailure, }: {
216
230
  adjustments: CartAdjustment[];
217
231
  cartItems: CartItem[];
232
+ landedCostId?: string;
233
+ /**
234
+ * Attempt to init session on failure to update checkout session. Should not create session if collect cart already has a checkout session id in references
235
+ * @default true
236
+ */
237
+ shouldInitSessionOnFailure?: boolean;
218
238
  }) => Promise<void>;
219
239
  declare const cartStorePreviousStep: () => void;
220
240
  declare const cartStoreNextStep: () => void;
221
241
  declare const cartStoreResetTabItems: () => void;
222
- export { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStoreClearCheckoutInterval, cartStoreGetMethod, cartStoreGetShippingTransitInfo, cartStoreHasOneEligibleItem, cartStoreNextStep, cartStoreOnChange, cartStorePreviousStep, cartStoreReset, cartStoreResetCartItems, cartStoreResetTabItems, cartStoreSetCheckoutSession, cartStoreStartCheckoutInterval, cartStoreUpdateItems, cartStoreUpdateSelectedShippingOption, cartStoreUpdateToErrorState, };
242
+ export { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStoreClearCheckoutInterval, cartStoreGetMethod, cartStoreGetShippingTransitInfo, cartStoreHasOneEligibleItem, cartStoreNextStep, cartStoreOnChange, cartStorePreviousStep, cartStoreReCalculateTotal, cartStoreReset, cartStoreResetCartItems, cartStoreResetTabItems, cartStoreSetCheckoutSession, cartStoreStartCheckoutInterval, cartStoreUpdateItems, cartStoreUpdateSelectedShippingOption, cartStoreUpdateToErrorState, };
@@ -0,0 +1,21 @@
1
+ import type { GetShippingInfoByLandedCostIdResponse } from "../../../types/index";
2
+ import type { CheckoutSessionDetailsFragment } from "../../../types/generated/graphql.internal.types";
3
+ type CollectStore = {
4
+ amountDutyTaxFeeTotal: number | null;
5
+ amountTotalPaid: number | null;
6
+ isFetchingShippingInfo: boolean;
7
+ landedCostShortId: string | null;
8
+ originCompanyName: string | null;
9
+ partyBillingId: string | null;
10
+ shippingAddress: GetShippingInfoByLandedCostIdResponse['shipping'] | null;
11
+ };
12
+ declare const collectStoreReset: () => void, collectStore: CollectStore;
13
+ declare const collectStoreInitShippingInfo: ({ landedCostId, retries, }: {
14
+ landedCostId: string;
15
+ retries?: number;
16
+ }) => Promise<null | undefined>;
17
+ declare const collectStoreAsyncAddressUpdate: () => Promise<{
18
+ partiesCreated: boolean;
19
+ }>;
20
+ declare const collectStoreUpdateSelectedShippingOption: (checkoutSession: CheckoutSessionDetailsFragment) => Promise<boolean>;
21
+ export { collectStore, collectStoreAsyncAddressUpdate, collectStoreInitShippingInfo, collectStoreReset, collectStoreUpdateSelectedShippingOption, };
@@ -1,4 +1,4 @@
1
- import { type PayPalButtonsComponent } from '@paypal/paypal-js';
1
+ import { type PayPalButtonsComponent, type PayPalNamespace } from '@paypal/paypal-js';
2
2
  import type { PaypalOrderIntent } from "../../../types/index";
3
3
  import type { CurrencyCode, ElementsUiStyle } from "../../../types/generated/graphql.internal.types";
4
4
  type PaypalStore = {
@@ -7,11 +7,12 @@ type PaypalStore = {
7
7
  * Zonos order id created by paypal
8
8
  */
9
9
  orderIdCreated: string | null;
10
+ paypal: PayPalNamespace | null;
10
11
  paypalButtons: PayPalButtonsComponent[];
11
12
  paypalClientId: string;
12
13
  paypalErrorMessage: string | null;
13
14
  };
14
- declare const paypalStoreReset: () => void, paypalStore: PaypalStore;
15
+ declare const paypalStoreOnChange: import("@stencil/store/dist/types").OnChangeHandler<PaypalStore>, paypalStoreReset: () => void, paypalStore: PaypalStore;
15
16
  declare const paypalStoreCreaterOrder: ({ checkoutSessionId, }: {
16
17
  checkoutSessionId: string;
17
18
  }) => Promise<string>;
@@ -27,4 +28,4 @@ declare const paypalStoreInitButtons: (props?: {
27
28
  }) => void;
28
29
  }) => PayPalButtonsComponent[] | null;
29
30
  declare const paypalStoreHasPaypalEnabled: () => boolean;
30
- export { paypalInitScript, paypalStore, paypalStoreCreaterOrder, paypalStoreHasPaypalEnabled, paypalStoreInitButtons, paypalStoreReset, };
31
+ export { paypalInitScript, paypalStore, paypalStoreCreaterOrder, paypalStoreHasPaypalEnabled, paypalStoreInitButtons, paypalStoreOnChange, paypalStoreReset, };
@@ -1,5 +1,6 @@
1
1
  import type { PaymentIntent, Stripe, StripeAddressElement, StripeAddressElementChangeEvent, StripeElements, StripeElementsOptions, StripeLinkAuthenticationElement, StripeLinkAuthenticationElementChangeEvent, StripePaymentElement, StripePaymentElementChangeEvent } from '@stripe/stripe-js';
2
2
  import type { containsNonLatinChars } from "../../utils/containsNonLatinChars";
3
+ import type { CreatePartyRequest } from "../../../types/index";
3
4
  import type { CheckoutSessionCreateRequest, CheckoutSessionUpdateRequest } from "../../../types/checkout/api/CheckoutSession";
4
5
  import type { CustomAddressErrors } from "../../../types/checkout/form/CustomAddressErrors";
5
6
  import type { TranslatedAddressObject } from "../../../types/checkout/TranslatedText";
@@ -143,6 +144,7 @@ declare const initStripeElements: (props?: {
143
144
  paypalEnabled?: boolean;
144
145
  }) => Promise<void>;
145
146
  declare const stripeStoreReset: () => void;
147
+ declare const stripeStoreBuildAddressForPartyCreate: ({ address, firstName, lastName, name, phone, }: StripeAddressElementChangeEvent["value"]) => CreatePartyRequest["address"];
146
148
  declare const stripeStoreAsyncAddressUpdate: () => Promise<{
147
149
  partiesCreated: boolean;
148
150
  }>;
@@ -197,7 +199,9 @@ declare const stripeStoreRetrievePayment: ({ clientSecret: _clientSecret, storyb
197
199
  status: PaymentIntent.Status | undefined;
198
200
  message?: undefined;
199
201
  }>;
200
- declare const stripeStoreConfirmPayment: () => Promise<void>;
202
+ declare const stripeStoreConfirmPayment: (props?: {
203
+ noLandedCostCheck?: boolean;
204
+ }) => Promise<void>;
201
205
  export declare const getCheckoutSessionBody: () => CheckoutSessionCreateRequest;
202
206
  declare const stripeStoreGetPaymentIntent: () => Promise<void>;
203
207
  /**
@@ -228,4 +232,4 @@ declare const stripeStoreTranslateAddressToLatin: ({ addressInvalidCharactersLis
228
232
  addressInvalidCharactersList: ReturnType<typeof containsNonLatinChars> | null;
229
233
  billingAddressInvalidCharactersList: ReturnType<typeof containsNonLatinChars> | null;
230
234
  }) => Promise<void>;
231
- export { initStripeElements, stripeCalculateLandedCost, stripeStore, stripeStoreApplyPromoCode, stripeStoreAsyncAddressUpdate, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreGetPaymentIntent, stripeStoreHandleInventoryCheck, stripeStoreHandleInventoryRefund, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStoreOnChange, stripeStorePrefetchLandedCost, stripeStoreRemovePromoCode, stripeStoreReset, stripeStoreResetPromoCode, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, stripeStoreUpdateCheckoutSessionBaseCurrency, };
235
+ export { initStripeElements, stripeCalculateLandedCost, stripeStore, stripeStoreApplyPromoCode, stripeStoreAsyncAddressUpdate, stripeStoreBuildAddressForPartyCreate, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreGetPaymentIntent, stripeStoreHandleInventoryCheck, stripeStoreHandleInventoryRefund, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStoreOnChange, stripeStorePrefetchLandedCost, stripeStoreRemovePromoCode, stripeStoreReset, stripeStoreResetPromoCode, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, stripeStoreUpdateCheckoutSessionBaseCurrency, };
@@ -5,6 +5,9 @@ export declare const stringsArabic: {
5
5
  ' (Duties prepaid)': {
6
6
  value: string;
7
7
  };
8
+ 'A confirmation email with your payment details has been sent for your records. If you have any questions or need support, our team is here to help.': {
9
+ value: string;
10
+ };
8
11
  'Above de minimis threshold for': {
9
12
  value: string;
10
13
  };
@@ -59,6 +62,9 @@ export declare const stringsArabic: {
59
62
  'Billing address': {
60
63
  value: string;
61
64
  };
65
+ 'Billing info': {
66
+ value: string;
67
+ };
62
68
  'By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level.': {
63
69
  value: string;
64
70
  };
@@ -101,6 +107,9 @@ export declare const stringsArabic: {
101
107
  'Company name (optional)': {
102
108
  value: string;
103
109
  };
110
+ 'Confirmation #:[confirmationId]': {
111
+ value: string;
112
+ };
104
113
  Contact: {
105
114
  value: string;
106
115
  };
@@ -125,6 +134,12 @@ export declare const stringsArabic: {
125
134
  'Customer information': {
126
135
  value: string;
127
136
  };
137
+ 'Customs fees for your recent purchase from [companyName] are ready for payment': {
138
+ value: string;
139
+ };
140
+ 'Customs fees total': {
141
+ value: string;
142
+ };
128
143
  Delivery: {
129
144
  value: string;
130
145
  };
@@ -170,6 +185,9 @@ export declare const stringsArabic: {
170
185
  'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
171
186
  value: string;
172
187
  };
188
+ Duties: {
189
+ value: string;
190
+ };
173
191
  'Duties and taxes will be applied to items and shipping.': {
174
192
  value: string;
175
193
  };
@@ -209,6 +227,9 @@ export declare const stringsArabic: {
209
227
  Failure: {
210
228
  value: string;
211
229
  };
230
+ Fees: {
231
+ value: string;
232
+ };
212
233
  'First name': {
213
234
  value: string;
214
235
  };
@@ -236,6 +257,9 @@ export declare const stringsArabic: {
236
257
  'Invalid promo code': {
237
258
  value: string;
238
259
  };
260
+ 'Invalid session': {
261
+ value: string;
262
+ };
239
263
  Island: {
240
264
  value: string;
241
265
  };
@@ -308,9 +332,15 @@ export declare const stringsArabic: {
308
332
  'Order complete!': {
309
333
  value: string;
310
334
  };
335
+ 'Order details': {
336
+ value: string;
337
+ };
311
338
  'Order total': {
312
339
  value: string;
313
340
  };
341
+ 'Ordered from': {
342
+ value: string;
343
+ };
314
344
  'Orders to [countryName] must be over [threshold] to ship.': {
315
345
  value: string;
316
346
  };
@@ -332,6 +362,9 @@ export declare const stringsArabic: {
332
362
  'Payment failed': {
333
363
  value: string;
334
364
  };
365
+ 'Payment failed. Please reload the page and try another payment method.': {
366
+ value: string;
367
+ };
335
368
  'Payment failed. Please try another payment method.': {
336
369
  value: string;
337
370
  };
@@ -452,6 +485,9 @@ export declare const stringsArabic: {
452
485
  'Select a language': {
453
486
  value: string;
454
487
  };
488
+ 'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
489
+ value: string;
490
+ };
455
491
  'Session timed out': {
456
492
  value: string;
457
493
  };
@@ -512,12 +548,18 @@ export declare const stringsArabic: {
512
548
  'Street or avenue': {
513
549
  value: string;
514
550
  };
551
+ Subtotal: {
552
+ value: string;
553
+ };
515
554
  Success: {
516
555
  value: string;
517
556
  };
518
557
  'Tax id is required': {
519
558
  value: string;
520
559
  };
560
+ Taxes: {
561
+ value: string;
562
+ };
521
563
  'Taxes and fees': {
522
564
  value: string;
523
565
  };
@@ -530,6 +572,9 @@ export declare const stringsArabic: {
530
572
  'Test mode': {
531
573
  value: string;
532
574
  };
575
+ 'Thank you for submitting your payment. We appreciate your prompt attention.': {
576
+ value: string;
577
+ };
533
578
  'The field is incomplete': {
534
579
  value: string;
535
580
  };
@@ -551,6 +596,9 @@ export declare const stringsArabic: {
551
596
  'To ensure delivery all address details must be in Latin characters.': {
552
597
  value: string;
553
598
  };
599
+ 'Total paid': {
600
+ value: string;
601
+ };
554
602
  Town: {
555
603
  value: string;
556
604
  };
@@ -5,6 +5,9 @@ export declare const stringsBase: {
5
5
  ' (Duties prepaid)': {
6
6
  value: string;
7
7
  };
8
+ 'A confirmation email with your payment details has been sent for your records. If you have any questions or need support, our team is here to help.': {
9
+ value: string;
10
+ };
8
11
  'Above de minimis threshold for': {
9
12
  value: string;
10
13
  };
@@ -59,6 +62,9 @@ export declare const stringsBase: {
59
62
  'Billing address': {
60
63
  value: string;
61
64
  };
65
+ 'Billing info': {
66
+ value: string;
67
+ };
62
68
  'By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level.': {
63
69
  value: string;
64
70
  };
@@ -101,6 +107,9 @@ export declare const stringsBase: {
101
107
  'Company name (optional)': {
102
108
  value: string;
103
109
  };
110
+ 'Confirmation #:[confirmationId]': {
111
+ value: string;
112
+ };
104
113
  Contact: {
105
114
  value: string;
106
115
  };
@@ -125,6 +134,12 @@ export declare const stringsBase: {
125
134
  'Customer information': {
126
135
  value: string;
127
136
  };
137
+ 'Customs fees for your recent purchase from [companyName] are ready for payment': {
138
+ value: string;
139
+ };
140
+ 'Customs fees total': {
141
+ value: string;
142
+ };
128
143
  Delivery: {
129
144
  value: string;
130
145
  };
@@ -170,6 +185,9 @@ export declare const stringsBase: {
170
185
  'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
171
186
  value: string;
172
187
  };
188
+ Duties: {
189
+ value: string;
190
+ };
173
191
  'Duties and taxes will be applied to items and shipping.': {
174
192
  value: string;
175
193
  };
@@ -209,6 +227,9 @@ export declare const stringsBase: {
209
227
  Failure: {
210
228
  value: string;
211
229
  };
230
+ Fees: {
231
+ value: string;
232
+ };
212
233
  'First name': {
213
234
  value: string;
214
235
  };
@@ -236,6 +257,9 @@ export declare const stringsBase: {
236
257
  'Invalid promo code': {
237
258
  value: string;
238
259
  };
260
+ 'Invalid session': {
261
+ value: string;
262
+ };
239
263
  Island: {
240
264
  value: string;
241
265
  };
@@ -308,9 +332,15 @@ export declare const stringsBase: {
308
332
  'Order complete!': {
309
333
  value: string;
310
334
  };
335
+ 'Order details': {
336
+ value: string;
337
+ };
311
338
  'Order total': {
312
339
  value: string;
313
340
  };
341
+ 'Ordered from': {
342
+ value: string;
343
+ };
314
344
  'Orders to [countryName] must be over [threshold] to ship.': {
315
345
  value: string;
316
346
  };
@@ -332,6 +362,9 @@ export declare const stringsBase: {
332
362
  'Payment failed': {
333
363
  value: string;
334
364
  };
365
+ 'Payment failed. Please reload the page and try another payment method.': {
366
+ value: string;
367
+ };
335
368
  'Payment failed. Please try another payment method.': {
336
369
  value: string;
337
370
  };
@@ -452,6 +485,9 @@ export declare const stringsBase: {
452
485
  'Select a language': {
453
486
  value: string;
454
487
  };
488
+ 'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
489
+ value: string;
490
+ };
455
491
  'Session timed out': {
456
492
  value: string;
457
493
  };
@@ -512,12 +548,18 @@ export declare const stringsBase: {
512
548
  'Street or avenue': {
513
549
  value: string;
514
550
  };
551
+ Subtotal: {
552
+ value: string;
553
+ };
515
554
  Success: {
516
555
  value: string;
517
556
  };
518
557
  'Tax id is required': {
519
558
  value: string;
520
559
  };
560
+ Taxes: {
561
+ value: string;
562
+ };
521
563
  'Taxes and fees': {
522
564
  value: string;
523
565
  };
@@ -530,6 +572,9 @@ export declare const stringsBase: {
530
572
  'Test mode': {
531
573
  value: string;
532
574
  };
575
+ 'Thank you for submitting your payment. We appreciate your prompt attention.': {
576
+ value: string;
577
+ };
533
578
  'The field is incomplete': {
534
579
  value: string;
535
580
  };
@@ -551,6 +596,9 @@ export declare const stringsBase: {
551
596
  'To ensure delivery all address details must be in Latin characters.': {
552
597
  value: string;
553
598
  };
599
+ 'Total paid': {
600
+ value: string;
601
+ };
554
602
  Town: {
555
603
  value: string;
556
604
  };