@zonos/elements 1.3.246 → 1.3.248

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 (304) hide show
  1. package/dist/cjs/ShortAddressCode-bec338b0.js +7 -0
  2. package/dist/cjs/{cart-52cf3366.js → cart-28310848.js} +37 -6
  3. package/dist/cjs/getContrastColor-30848800.js +37 -0
  4. package/dist/cjs/{hasInclusivePrice-dbb82df8.js → hasInclusivePrice-134b0250.js} +1 -1
  5. package/dist/cjs/index.cjs.js +16 -7
  6. package/dist/cjs/{invoice-972f1ab3.js → invoice-2e8e5879.js} +2 -2
  7. package/dist/cjs/{isCollectMobileTablet-fd11246c.js → isCollectMobileTablet-bd0f4556.js} +2 -2
  8. package/dist/cjs/isContrastColor-09f5924a.js +12 -0
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{localization-b1075a8c.js → localization-00e73920.js} +180 -0
  11. package/dist/cjs/{paypal-e339cc8c.js → paypal-3019ae94.js} +24 -29
  12. package/dist/cjs/{placeTestOrder-3dfbe3d6.js → placeTestOrder-b0369cfd.js} +2 -2
  13. package/dist/cjs/{renderCheckoutCurrency-55056c97.js → renderCheckoutCurrency-9e919b9f.js} +2 -2
  14. package/dist/cjs/{shouldRenderTaxIdInput-eda13ef8.js → shouldRenderTaxIdInput-b8abf6de.js} +18 -0
  15. package/dist/cjs/submitGtag-a50ab32e.js +116 -0
  16. package/dist/cjs/zonos-address-display_9.cjs.entry.js +35 -5
  17. package/dist/cjs/zonos-address_4.cjs.entry.js +37 -7
  18. package/dist/cjs/zonos-card_5.cjs.entry.js +5 -3
  19. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +170 -57
  20. package/dist/cjs/zonos-checkout.cjs.entry.js +31 -9
  21. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +2 -2
  22. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +14 -12
  23. package/dist/cjs/zonos-collect.cjs.entry.js +6 -4
  24. package/dist/cjs/zonos-controller.cjs.entry.js +6 -3
  25. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  27. package/dist/cjs/zonos-elements.cjs.js +1 -1
  28. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
  29. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  30. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
  31. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +14 -12
  32. package/dist/cjs/zonos-invoice.cjs.entry.js +6 -4
  33. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  34. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +18 -4
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +88 -9
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +9 -2
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +26 -6
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +16 -2
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +31 -6
  40. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +5 -5
  41. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +1 -1
  42. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +5 -5
  43. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +1 -1
  44. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +35 -4
  45. package/dist/collection/components/main/zonos-controller.js +4 -1
  46. package/dist/collection/components/store/checkout/paypal.js +19 -1
  47. package/dist/collection/components/store/checkout/stripe.js +34 -5
  48. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  49. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  50. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  51. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  52. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  53. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  54. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  55. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  56. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  57. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  58. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  59. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  60. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  61. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  62. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  63. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  64. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  65. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  66. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  67. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  68. package/dist/collection/components/stripe/zonos-address/zonos-address.css +2 -1
  69. package/dist/collection/components/stripe/zonos-address/zonos-address.js +53 -3
  70. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +52 -2
  71. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +2 -0
  72. package/dist/collection/components/utils/checkout/shouldRenderShortAddressCodeInput.js +16 -0
  73. package/dist/collection/components/utils/shortAddressCodeValidationResult.js +37 -0
  74. package/dist/collection/components/utils/submitGtag.js +90 -2
  75. package/dist/collection/scripts/_zonosBase.js +7 -0
  76. package/dist/collection/types/analyticsRelay.js +6 -0
  77. package/dist/collection/types/checkout/ShortAddressCode.js +3 -0
  78. package/dist/collection/types/generated/graphql.frontend.types.js +2 -0
  79. package/dist/collection/types/generated/graphql.internal.types.js +135 -0
  80. package/dist/collection/types/index.js +1 -0
  81. package/dist/esm/ShortAddressCode-7620e622.js +5 -0
  82. package/dist/esm/{cart-7f4704dc.js → cart-ba8f3890.js} +37 -6
  83. package/dist/esm/getContrastColor-28c18704.js +35 -0
  84. package/dist/esm/{hasInclusivePrice-3958ed11.js → hasInclusivePrice-6fcc712f.js} +1 -1
  85. package/dist/esm/index.js +15 -7
  86. package/dist/esm/{invoice-d3d256fb.js → invoice-055bb6e5.js} +2 -2
  87. package/dist/esm/{isCollectMobileTablet-27693de5.js → isCollectMobileTablet-797cea8b.js} +2 -2
  88. package/dist/esm/isContrastColor-69778cea.js +10 -0
  89. package/dist/esm/loader.js +1 -1
  90. package/dist/esm/{localization-401ec6d4.js → localization-853b48a9.js} +180 -0
  91. package/dist/esm/{paypal-61270b79.js → paypal-8d8518c0.js} +25 -28
  92. package/dist/esm/{placeTestOrder-c2180600.js → placeTestOrder-0a74923e.js} +2 -2
  93. package/dist/esm/{renderCheckoutCurrency-dea06d44.js → renderCheckoutCurrency-bd059ecf.js} +2 -2
  94. package/dist/esm/{shouldRenderTaxIdInput-d45ceeb4.js → shouldRenderTaxIdInput-2572bf77.js} +18 -1
  95. package/dist/esm/submitGtag-89d6e9cb.js +113 -0
  96. package/dist/esm/zonos-address-display_9.entry.js +35 -5
  97. package/dist/esm/zonos-address_4.entry.js +37 -7
  98. package/dist/esm/zonos-card_5.entry.js +5 -3
  99. package/dist/esm/zonos-cart-items_12.entry.js +170 -57
  100. package/dist/esm/zonos-checkout.entry.js +31 -9
  101. package/dist/esm/zonos-collect-cart-items_3.entry.js +2 -2
  102. package/dist/esm/zonos-collect-finish_6.entry.js +14 -12
  103. package/dist/esm/zonos-collect.entry.js +6 -4
  104. package/dist/esm/zonos-controller.entry.js +6 -3
  105. package/dist/esm/zonos-country-flag.entry.js +1 -1
  106. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  107. package/dist/esm/zonos-elements.js +1 -1
  108. package/dist/esm/zonos-hello-dialog.entry.js +2 -2
  109. package/dist/esm/zonos-hello.entry.js +1 -1
  110. package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
  111. package/dist/esm/zonos-invoice-finish_5.entry.js +14 -12
  112. package/dist/esm/zonos-invoice.entry.js +6 -4
  113. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  114. package/dist/esm/zonos-shipping-rich-radio.entry.js +19 -5
  115. package/dist/esm-es5/ShortAddressCode-7620e622.js +1 -0
  116. package/dist/esm-es5/cart-ba8f3890.js +1 -0
  117. package/dist/esm-es5/getContrastColor-28c18704.js +1 -0
  118. package/dist/esm-es5/{hasInclusivePrice-3958ed11.js → hasInclusivePrice-6fcc712f.js} +1 -1
  119. package/dist/esm-es5/index.js +1 -1
  120. package/dist/esm-es5/{invoice-d3d256fb.js → invoice-055bb6e5.js} +1 -1
  121. package/dist/esm-es5/{isCollectMobileTablet-27693de5.js → isCollectMobileTablet-797cea8b.js} +1 -1
  122. package/dist/esm-es5/isContrastColor-69778cea.js +1 -0
  123. package/dist/esm-es5/loader.js +1 -1
  124. package/dist/esm-es5/localization-853b48a9.js +1 -0
  125. package/dist/esm-es5/paypal-8d8518c0.js +17 -0
  126. package/dist/esm-es5/{placeTestOrder-c2180600.js → placeTestOrder-0a74923e.js} +1 -1
  127. package/dist/esm-es5/{renderCheckoutCurrency-dea06d44.js → renderCheckoutCurrency-bd059ecf.js} +1 -1
  128. package/dist/esm-es5/shouldRenderTaxIdInput-2572bf77.js +1 -0
  129. package/dist/esm-es5/submitGtag-89d6e9cb.js +1 -0
  130. package/dist/esm-es5/zonos-address-display_9.entry.js +1 -1
  131. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  132. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  133. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  134. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  135. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  136. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  137. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  138. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  139. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  140. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  141. package/dist/esm-es5/zonos-elements.js +1 -1
  142. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  143. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  144. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  145. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  146. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  147. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  148. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  149. package/dist/scripts/analyticsRelayOnInit.js +1 -0
  150. package/dist/scripts/index.d.ts +61 -4
  151. package/dist/scripts/index.js +1 -1
  152. package/dist/scripts/loadZonos.js +1 -1
  153. package/dist/scripts/zonos.js +1 -1
  154. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +4 -0
  155. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +4 -0
  156. package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +4 -0
  157. package/dist/types/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.d.ts +5 -0
  158. package/dist/types/components/store/checkout/stripe.d.ts +10 -0
  159. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  160. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  161. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  162. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  163. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  164. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  165. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  166. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  167. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  168. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  169. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  170. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  171. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  172. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  173. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  174. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  175. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  176. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  177. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  178. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  179. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +8 -0
  180. package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +8 -0
  181. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  182. package/dist/types/components/utils/checkout/shouldRenderShortAddressCodeInput.d.ts +6 -0
  183. package/dist/types/components/utils/shortAddressCodeValidationResult.d.ts +12 -0
  184. package/dist/types/components/utils/submitGtag.d.ts +32 -2
  185. package/dist/types/components.d.ts +32 -0
  186. package/dist/types/scripts/_zonosBase.d.ts +11 -0
  187. package/dist/types/types/analyticsRelay.d.ts +12 -0
  188. package/dist/types/types/checkout/ShortAddressCode.d.ts +2 -0
  189. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +8 -0
  190. package/dist/types/types/checkout/api/CreateParty.d.ts +1 -0
  191. package/dist/types/types/generated/graphql.frontend.types.d.ts +3 -1
  192. package/dist/types/types/generated/graphql.frontend.types.ts +3 -1
  193. package/dist/types/types/generated/graphql.internal.types.d.ts +157 -30
  194. package/dist/types/types/generated/graphql.internal.types.ts +194 -37
  195. package/dist/types/types/index.d.ts +1 -0
  196. package/dist/zonos-elements/index.esm.js +1 -1
  197. package/dist/zonos-elements/p-002e45f9.system.js +17 -0
  198. package/dist/zonos-elements/p-0792688d.system.entry.js +1 -0
  199. package/dist/zonos-elements/p-09aabce0.js +1 -0
  200. package/dist/zonos-elements/p-0b7beb16.system.entry.js +1 -0
  201. package/dist/zonos-elements/p-0f787f5d.entry.js +1 -0
  202. package/dist/zonos-elements/p-0ff93ca6.entry.js +1 -0
  203. package/dist/zonos-elements/p-14735e9a.system.entry.js +1 -0
  204. package/dist/zonos-elements/{p-367c13db.system.entry.js → p-1acf0a71.system.entry.js} +1 -1
  205. package/dist/zonos-elements/p-1d42cd20.js +1 -0
  206. package/dist/zonos-elements/p-1dbeeab2.entry.js +1 -0
  207. package/dist/zonos-elements/p-291f7ccb.system.entry.js +1 -0
  208. package/dist/zonos-elements/{p-67820c21.system.entry.js → p-2f55895c.system.entry.js} +1 -1
  209. package/dist/zonos-elements/p-37bb5f2d.entry.js +1 -0
  210. package/dist/zonos-elements/{p-fe699cc5.system.entry.js → p-3908f78d.system.entry.js} +1 -1
  211. package/dist/zonos-elements/p-3972663a.system.entry.js +1 -0
  212. package/dist/zonos-elements/{p-4d7b82b5.entry.js → p-39fa55c7.entry.js} +1 -1
  213. package/dist/zonos-elements/p-3e85b9f5.system.entry.js +1 -0
  214. package/dist/zonos-elements/{p-cee69784.entry.js → p-403b9fca.entry.js} +1 -1
  215. package/dist/zonos-elements/p-41299ffb.js +1 -0
  216. package/dist/zonos-elements/p-443e1f30.system.js +1 -0
  217. package/dist/zonos-elements/p-48475755.entry.js +1 -0
  218. package/dist/zonos-elements/p-48d55793.system.js +1 -0
  219. package/dist/zonos-elements/{p-3f46d83e.entry.js → p-58248f03.entry.js} +1 -1
  220. package/dist/zonos-elements/p-5edef7c3.system.js +1 -0
  221. package/dist/zonos-elements/p-63a383f4.js +1 -0
  222. package/dist/zonos-elements/{p-415c2a90.system.js → p-63a3d3b9.system.js} +1 -1
  223. package/dist/zonos-elements/p-64661dd1.js +1 -0
  224. package/dist/zonos-elements/p-655ec440.system.js +1 -0
  225. package/dist/zonos-elements/p-69212d0f.entry.js +1 -0
  226. package/dist/zonos-elements/{p-4bd8a16c.entry.js → p-69b9b711.entry.js} +1 -1
  227. package/dist/zonos-elements/p-719403e0.system.js +1 -0
  228. package/dist/zonos-elements/{p-133e9ce7.system.entry.js → p-71a8d971.system.entry.js} +1 -1
  229. package/dist/zonos-elements/p-71d855b8.system.entry.js +1 -0
  230. package/dist/zonos-elements/p-71f10bf0.entry.js +1 -0
  231. package/dist/zonos-elements/p-72ff005c.entry.js +1 -0
  232. package/dist/zonos-elements/p-786d1c24.js +1 -0
  233. package/dist/zonos-elements/{p-87206522.system.entry.js → p-7b400b5f.system.entry.js} +1 -1
  234. package/dist/zonos-elements/p-7dba5f23.system.js +1 -0
  235. package/dist/zonos-elements/{p-6b9b7cfb.system.entry.js → p-8205ae87.system.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-3a88a130.entry.js → p-83377e23.entry.js} +1 -1
  237. package/dist/zonos-elements/p-85e59f3a.system.entry.js +1 -0
  238. package/dist/zonos-elements/p-866afec1.js +1 -0
  239. package/dist/zonos-elements/p-942358eb.system.js +1 -0
  240. package/dist/zonos-elements/p-94c5fbfc.system.entry.js +1 -0
  241. package/dist/zonos-elements/p-a12cb7ce.entry.js +1 -0
  242. package/dist/zonos-elements/p-abf38ed6.js +1 -0
  243. package/dist/zonos-elements/{p-e0809901.system.js → p-ae16dda9.system.js} +1 -1
  244. package/dist/zonos-elements/p-ae26aec5.system.js +1 -0
  245. package/dist/zonos-elements/p-af85846e.system.js +1 -0
  246. package/dist/zonos-elements/{p-78c8bb58.system.entry.js → p-b54a95ea.system.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-a79f3685.js → p-bc4bfa06.js} +1 -1
  248. package/dist/zonos-elements/p-bf5e47e2.entry.js +1 -0
  249. package/dist/zonos-elements/p-c027a832.system.js +1 -0
  250. package/dist/zonos-elements/p-c2442878.system.js +1 -1
  251. package/dist/zonos-elements/p-c2f34b10.system.entry.js +1 -0
  252. package/dist/zonos-elements/p-c36696f9.js +1 -0
  253. package/dist/zonos-elements/p-c7311ce5.system.entry.js +1 -0
  254. package/dist/zonos-elements/{p-faae5eca.entry.js → p-d5b7d3c3.entry.js} +1 -1
  255. package/dist/zonos-elements/{p-288aab46.js → p-de8899bc.js} +1 -1
  256. package/dist/zonos-elements/p-e17bbcee.entry.js +1 -0
  257. package/dist/zonos-elements/p-eea7ac64.js +1 -0
  258. package/dist/zonos-elements/p-f6c2c743.entry.js +1 -0
  259. package/dist/zonos-elements/p-fe06c9ea.js +17 -0
  260. package/dist/zonos-elements/p-fe96e239.system.js +1 -0
  261. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  262. package/package.json +1 -1
  263. package/dist/esm-es5/cart-7f4704dc.js +0 -1
  264. package/dist/esm-es5/localization-401ec6d4.js +0 -1
  265. package/dist/esm-es5/paypal-61270b79.js +0 -17
  266. package/dist/esm-es5/shouldRenderTaxIdInput-d45ceeb4.js +0 -1
  267. package/dist/zonos-elements/p-01b0a2e2.js +0 -1
  268. package/dist/zonos-elements/p-095f43ec.entry.js +0 -1
  269. package/dist/zonos-elements/p-1d91e5d1.entry.js +0 -1
  270. package/dist/zonos-elements/p-21fb6b39.js +0 -1
  271. package/dist/zonos-elements/p-2601538e.entry.js +0 -1
  272. package/dist/zonos-elements/p-276faa43.js +0 -1
  273. package/dist/zonos-elements/p-27874c22.entry.js +0 -1
  274. package/dist/zonos-elements/p-2889a485.system.entry.js +0 -1
  275. package/dist/zonos-elements/p-291b85f7.entry.js +0 -1
  276. package/dist/zonos-elements/p-2d2c627a.system.js +0 -1
  277. package/dist/zonos-elements/p-3b1898bc.system.entry.js +0 -1
  278. package/dist/zonos-elements/p-3f078bf5.system.entry.js +0 -1
  279. package/dist/zonos-elements/p-518b501c.system.entry.js +0 -1
  280. package/dist/zonos-elements/p-59ebb8c7.system.entry.js +0 -1
  281. package/dist/zonos-elements/p-5f956a0d.entry.js +0 -1
  282. package/dist/zonos-elements/p-6c29de12.entry.js +0 -1
  283. package/dist/zonos-elements/p-74e258ff.system.js +0 -1
  284. package/dist/zonos-elements/p-775c1122.system.js +0 -1
  285. package/dist/zonos-elements/p-7a6ab319.system.entry.js +0 -1
  286. package/dist/zonos-elements/p-85430ec1.js +0 -1
  287. package/dist/zonos-elements/p-872f9c22.system.entry.js +0 -1
  288. package/dist/zonos-elements/p-95524f54.js +0 -1
  289. package/dist/zonos-elements/p-993723c2.system.entry.js +0 -1
  290. package/dist/zonos-elements/p-a0a62b7e.js +0 -17
  291. package/dist/zonos-elements/p-a3411f20.entry.js +0 -1
  292. package/dist/zonos-elements/p-a556ec07.system.js +0 -17
  293. package/dist/zonos-elements/p-a6489088.js +0 -1
  294. package/dist/zonos-elements/p-acc0eee3.system.js +0 -1
  295. package/dist/zonos-elements/p-bd10e82a.system.entry.js +0 -1
  296. package/dist/zonos-elements/p-c62b6741.system.entry.js +0 -1
  297. package/dist/zonos-elements/p-c6aa780e.entry.js +0 -1
  298. package/dist/zonos-elements/p-d1effb76.system.js +0 -1
  299. package/dist/zonos-elements/p-e7543082.system.js +0 -1
  300. package/dist/zonos-elements/p-e7df8394.entry.js +0 -1
  301. package/dist/zonos-elements/p-e90e9584.entry.js +0 -1
  302. package/dist/zonos-elements/p-eb9ee025.system.js +0 -1
  303. package/dist/zonos-elements/p-ebef34e3.entry.js +0 -1
  304. package/dist/zonos-elements/p-f6c6b6d3.system.entry.js +0 -1
@@ -35,6 +35,10 @@ export declare class ZonosCheckoutFinish {
35
35
  */
36
36
  isWaitingToRedirect: boolean;
37
37
  private pullOrder;
38
+ /**
39
+ * Metadata for purchase event in GA4
40
+ */
41
+ private buildPurchaseMetadata;
38
42
  private redirectToUrl;
39
43
  private isRedirectBehavior;
40
44
  /**
@@ -61,6 +61,10 @@ export declare class ZonosCustomerInfo {
61
61
  * Whether or not the tax id input is invalid
62
62
  */
63
63
  taxIdErrorMessage: string;
64
+ /**
65
+ * Whether or not the short address code input is invalid
66
+ */
67
+ shortAddressCodeErrorMessage: string;
64
68
  /**
65
69
  * Whether or not the shipping address contains invalid characters
66
70
  */
@@ -14,6 +14,10 @@ export declare class ZonosShipping {
14
14
  * Whether or not the checkout is in mobile mode
15
15
  */
16
16
  submitBtnType?: HTMLZonosButtonElement['variant'];
17
+ /**
18
+ * Whether or not the checkout is in mobile mode
19
+ */
20
+ isMobile: boolean;
17
21
  /**
18
22
  * Event to emit when the continue button is clicked
19
23
  */
@@ -13,6 +13,7 @@ export type ShippingRichRadioItem = {
13
13
  value: string | number;
14
14
  };
15
15
  export declare class ZonosShippingRichRadio {
16
+ ele: HTMLZonosShippingRichRadioElement;
16
17
  /**
17
18
  * List of items to display
18
19
  */
@@ -31,6 +32,10 @@ export declare class ZonosShippingRichRadio {
31
32
  * Theme of the radio item
32
33
  */
33
34
  theme?: ElementsUiTheme;
35
+ /**
36
+ * Whether or not the radio item is in mobile mode
37
+ */
38
+ isMobile: boolean;
34
39
  /**
35
40
  * Selected item
36
41
  * @default {null|firstItem}
@@ -70,6 +70,10 @@ type StripeStore = {
70
70
  * Shipping party id (used for async address update)
71
71
  */
72
72
  partyShippingId: string | null;
73
+ /**
74
+ * Short address code only required for Saudi Arabia
75
+ */
76
+ shortAddressCode: string;
73
77
  /**
74
78
  * Toggle to indicate if we should refund the inventory when the payment is failed
75
79
  */
@@ -181,6 +185,8 @@ declare const stripeStoreRetrievePayment: ({ clientSecret: _clientSecret, storyb
181
185
  error: boolean;
182
186
  messages: string[];
183
187
  message?: undefined;
188
+ amount?: undefined;
189
+ currency?: undefined;
184
190
  paymentIntentId?: undefined;
185
191
  paymentMethod?: undefined;
186
192
  status?: undefined;
@@ -188,10 +194,14 @@ declare const stripeStoreRetrievePayment: ({ clientSecret: _clientSecret, storyb
188
194
  error: boolean;
189
195
  message: string[];
190
196
  messages?: undefined;
197
+ amount?: undefined;
198
+ currency?: undefined;
191
199
  paymentIntentId?: undefined;
192
200
  paymentMethod?: undefined;
193
201
  status?: undefined;
194
202
  } | {
203
+ amount: number | undefined;
204
+ currency: string | undefined;
195
205
  error: boolean;
196
206
  messages: string[];
197
207
  paymentIntentId: string | undefined;
@@ -284,6 +284,9 @@ export declare const stringsArabic: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsArabic: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsBase: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsBase: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsChinese: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsChinese: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsDanish: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsDanish: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsDutch: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsDutch: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsFrench: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsFrench: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsGerman: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsGerman: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsHebrew: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsHebrew: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsIndonesian: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsIndonesian: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsItalian: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsItalian: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsJapanese: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsJapanese: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsKorean: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsKorean: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsNorwegian: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsNorwegian: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsPolish: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsPolish: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsPortuguese: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsPortuguese: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsRussian: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsRussian: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsSpanish: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsSpanish: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsSwedish: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsSwedish: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsTurkish: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsTurkish: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsVietnamese: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsVietnamese: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -22,6 +22,10 @@ export declare class ZonosAddress {
22
22
  * Error message for tax id input
23
23
  */
24
24
  taxIdErrorMessage: string;
25
+ /**
26
+ * Error message for short address code input
27
+ */
28
+ shortAddressCodeErrorMessage: string;
25
29
  /**
26
30
  * Event to emit when address is not containing allowed character sets
27
31
  */
@@ -65,6 +69,10 @@ export declare class ZonosAddress {
65
69
  * Render tax id input based on ship to country code
66
70
  */
67
71
  private renderTaxIdInput;
72
+ /**
73
+ * Render short address code input based on ship to country code
74
+ */
75
+ private renderShortAddressCodeInput;
68
76
  private renderCompanyNameInput;
69
77
  disconnectedCallback(): void;
70
78
  componentDidLoad(): void;
@@ -23,6 +23,10 @@ export declare class ZonosAddress {
23
23
  * Error message for tax id input
24
24
  */
25
25
  taxIdErrorMessage: string;
26
+ /**
27
+ * Error message for short address code input
28
+ */
29
+ shortAddressCodeErrorMessage: string;
26
30
  /**
27
31
  * Event to emit when address is not containing allowed character sets
28
32
  */
@@ -137,6 +141,10 @@ export declare class ZonosAddress {
137
141
  * Render tax id input based on ship to country code
138
142
  */
139
143
  private renderTaxIdInput;
144
+ /**
145
+ * Render short address code input based on ship to country code
146
+ */
147
+ private renderShortAddressCodeInput;
140
148
  private renderCompanyNameInput;
141
149
  private initCountryField;
142
150
  private initDefaultCustomAddressForm;
@@ -4,7 +4,7 @@ export declare const getLocaleMessages: ({ countryCode, localeTo, storeId, }: {
4
4
  localeTo?: string;
5
5
  storeId: number;
6
6
  }) => Promise<{
7
- countryCodes: Array<string>;
7
+ countryCodes: Array<string> | null;
8
8
  countryCodesPageMessageLinks: Array<{
9
9
  id: number;
10
10
  message: {
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Checks if the short address code input should be rendered based on the country code.
3
+ */
4
+ export declare const shouldRenderShortAddressCodeInput: ({ countryCode, }: {
5
+ countryCode: string;
6
+ }) => boolean;
@@ -0,0 +1,12 @@
1
+ type ShortAddressCodeValidationResult = {
2
+ error: 'Short address code is required.' | 'Invalid short address code format. Must be 4 letters and 4 numbers.';
3
+ valid: false;
4
+ } | {
5
+ error: null;
6
+ valid: true;
7
+ };
8
+ export declare const shortAddressCodeValidationResult: ({ shippingCountry, shortAddressCode, }: {
9
+ shippingCountry: string;
10
+ shortAddressCode: string;
11
+ }) => ShortAddressCodeValidationResult;
12
+ export {};
@@ -1,11 +1,41 @@
1
1
  type CheckoutEvent = 'zonos-checkout-start' | 'zonos-checkout-close' | 'zonos-checkout-success' | 'zonos-checkout-payment-fail' | 'zonos-checkout-customer-info' | 'zonos-checkout-shipping-info' | 'zonos-checkout-payment-info';
2
+ export type PurchaseMetadata = {
3
+ items: {
4
+ item_id: string;
5
+ item_name: string;
6
+ price: number;
7
+ quantity: number;
8
+ }[];
9
+ transaction_id: string;
10
+ } & ({
11
+ currency: string;
12
+ value: number;
13
+ } | {
14
+ currency: undefined;
15
+ value: undefined;
16
+ });
17
+ type GtagEvent = {
18
+ event: CheckoutEvent;
19
+ metadata?: Record<string, unknown>;
20
+ } | {
21
+ event: 'purchase';
22
+ metadata: PurchaseMetadata;
23
+ };
2
24
  declare global {
3
25
  interface Window {
4
- gtag: (event: string, action: string, data: Record<string, unknown>) => void;
26
+ dataLayer: unknown[];
27
+ gtag: (event: string, action: string | Date, data?: Record<string, unknown>) => void;
5
28
  }
6
29
  }
30
+ /**
31
+ * Sends ping to parent with googleAnalyticId so parent can inject/configure GA and respond with ready.
32
+ * Call after customHTML or custom script sets window.Zonos.googleAnalyticId.
33
+ */
34
+ export declare function ensureAnalyticsRelayPing(): void;
7
35
  /**
8
36
  * Submit a gtag event if the gtag function is available.
37
+ * When running inside an iframe, only posts to parent after the parent has
38
+ * confirmed (via analyticsRelayOnInit) that gtag is available.
9
39
  */
10
- export declare const submitGtag: (event: CheckoutEvent) => void;
40
+ export declare const submitGtag: ({ event, metadata }: GtagEvent) => void;
11
41
  export {};