@zonos/elements 1.3.289 → 1.3.291

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 (284) hide show
  1. package/dist/cjs/{cart-WLQb2hbe.js → cart-B6Aty-21.js} +3 -3
  2. package/dist/cjs/{collect-B92uIdsY.js → collect-Oeo5tjN5.js} +3 -3
  3. package/dist/cjs/{debounce-5sZmmlCI.js → debounce-Cd2emZPn.js} +2 -2
  4. package/dist/cjs/{debounce-Nu2lJW4A.js → debounce-vY0QYT6o.js} +1 -1
  5. package/dist/cjs/{getBorderRadius-DGZiQu09.js → getBorderRadius-CyYZw4qq.js} +1 -1
  6. package/dist/cjs/{getMissingRequiredShippingFields-5w62gTIB.js → getMissingRequiredShippingFields-D03ICqss.js} +1 -1
  7. package/dist/cjs/{hasInclusivePrice-hmV0Inld.js → hasInclusivePrice-CPCoVeU3.js} +1 -1
  8. package/dist/cjs/index.cjs.js +7 -7
  9. package/dist/cjs/{invoice-Bal1mqYR.js → invoice-Cj8W7NW0.js} +3 -3
  10. package/dist/cjs/{localization-C5HPlCNK.js → localization-BzNeXeDe.js} +25 -16
  11. package/dist/cjs/{paypal-o164C26_.js → paypal-CuKshRmZ.js} +4 -4
  12. package/dist/cjs/{placeTestOrder-C7tAipav.js → placeTestOrder-7czjwkjm.js} +2 -2
  13. package/dist/cjs/{renderCheckoutCurrency-Bpx-vrTQ.js → renderCheckoutCurrency-BH8t2b2x.js} +2 -2
  14. package/dist/cjs/{shouldShowLanguageSelect-CtwkMt8b.js → shouldShowLanguageSelect-yAbtCmd8.js} +1 -1
  15. package/dist/cjs/{submitGtag-CcEL-w5D.js → submitGtag-D79e8u6s.js} +1 -1
  16. package/dist/cjs/{throttle-BcxGntLr.js → throttle-zSVRQLC0.js} +2 -2
  17. package/dist/cjs/{updateCheckoutSessionAttributes-Dltl5RBx.js → updateCheckoutSessionAttributes-jMtfOL2m.js} +1 -1
  18. package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +7 -7
  19. package/dist/cjs/zonos-address-display_2.cjs.entry.js +3 -3
  20. package/dist/cjs/zonos-address_4.cjs.entry.js +6 -6
  21. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +5 -5
  22. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-button_3.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-card_5.cjs.entry.js +6 -6
  26. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +14 -14
  27. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +2 -2
  28. package/dist/cjs/zonos-checkout.cjs.entry.js +9 -9
  29. package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
  30. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +4 -4
  31. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +10 -10
  32. package/dist/cjs/zonos-collect.cjs.entry.js +7 -7
  33. package/dist/cjs/zonos-controller.cjs.entry.js +5 -5
  34. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  35. package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -3
  36. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
  37. package/dist/cjs/zonos-hello.cjs.entry.js +129 -51
  38. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  39. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +6 -6
  40. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +10 -10
  41. package/dist/cjs/zonos-invoice.cjs.entry.js +7 -7
  42. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  43. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  44. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +5 -5
  45. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  46. package/dist/cjs/zonos-stripe-input.cjs.entry.js +2 -2
  47. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  48. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  49. package/dist/cjs/{zonosStore-BCNYr6Tk.js → zonosStore-Bx9jK82G.js} +2 -0
  50. package/dist/collection/components/hello/zonos-hello/zonos-hello.css +17 -15
  51. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +29 -52
  52. package/dist/collection/components/store/hello/localization.js +4 -1
  53. package/dist/collection/components/store/zonosStore.js +2 -0
  54. package/dist/collection/components/utils/hello/countryOverrideStorage.js +20 -14
  55. package/dist/collection/components/utils/hello/resolveHelloFloatPlacement.js +98 -0
  56. package/dist/collection/types/generated/graphql.internal.types.js +176 -9
  57. package/dist/esm/{cart-BDc4RTBJ.js → cart-BoQp8Ema.js} +3 -3
  58. package/dist/esm/{collect-NRCK3t-M.js → collect-CdrR5OBy.js} +3 -3
  59. package/dist/esm/{debounce-D4ko2kvZ.js → debounce-BR3PaG8X.js} +1 -1
  60. package/dist/esm/{debounce-DWPsxJsW.js → debounce-CrmpwbEE.js} +2 -2
  61. package/dist/esm/{getBorderRadius-HwG64EKM.js → getBorderRadius-DYfkeXdx.js} +1 -1
  62. package/dist/esm/{getMissingRequiredShippingFields-D-B-N1NH.js → getMissingRequiredShippingFields-Ks6_tpjn.js} +1 -1
  63. package/dist/esm/{hasInclusivePrice-Bti4iudO.js → hasInclusivePrice-CbEfIhI5.js} +1 -1
  64. package/dist/esm/index.js +7 -7
  65. package/dist/esm/{invoice-DsvQvu4a.js → invoice-S1KahJ_Z.js} +3 -3
  66. package/dist/esm/{localization-Bs6hVcKV.js → localization-BIh-4pc_.js} +25 -16
  67. package/dist/esm/{paypal-BqyEZS_u.js → paypal-DNfvnuUU.js} +4 -4
  68. package/dist/esm/{placeTestOrder-x3xwMAnW.js → placeTestOrder-CQaMKFOg.js} +2 -2
  69. package/dist/esm/{renderCheckoutCurrency-DIBdWKN1.js → renderCheckoutCurrency-C2Tw73uR.js} +2 -2
  70. package/dist/esm/{shouldShowLanguageSelect-Bb9sbQ41.js → shouldShowLanguageSelect-CCD7gpSY.js} +1 -1
  71. package/dist/esm/{submitGtag-CCGQS060.js → submitGtag-df9AQ2zL.js} +1 -1
  72. package/dist/esm/{throttle-D5GyA3yr.js → throttle-Cvlvb-dm.js} +2 -2
  73. package/dist/esm/{updateCheckoutSessionAttributes-eRSqdC74.js → updateCheckoutSessionAttributes-4Jq6V4pO.js} +1 -1
  74. package/dist/esm/zonos-address-completion-dialog_7.entry.js +7 -7
  75. package/dist/esm/zonos-address-display_2.entry.js +3 -3
  76. package/dist/esm/zonos-address_4.entry.js +6 -6
  77. package/dist/esm/zonos-airwallex-payment.entry.js +5 -5
  78. package/dist/esm/zonos-badge.entry.js +1 -1
  79. package/dist/esm/zonos-banner.entry.js +1 -1
  80. package/dist/esm/zonos-button_3.entry.js +2 -2
  81. package/dist/esm/zonos-card_5.entry.js +6 -6
  82. package/dist/esm/zonos-cart-items_12.entry.js +14 -14
  83. package/dist/esm/zonos-checkbox_2.entry.js +2 -2
  84. package/dist/esm/zonos-checkout.entry.js +9 -9
  85. package/dist/esm/zonos-collapse.entry.js +1 -1
  86. package/dist/esm/zonos-collect-cart-items_3.entry.js +4 -4
  87. package/dist/esm/zonos-collect-finish_6.entry.js +10 -10
  88. package/dist/esm/zonos-collect.entry.js +7 -7
  89. package/dist/esm/zonos-controller.entry.js +5 -5
  90. package/dist/esm/zonos-country-flag.entry.js +2 -2
  91. package/dist/esm/zonos-country-select_4.entry.js +3 -3
  92. package/dist/esm/zonos-hello-dialog.entry.js +3 -3
  93. package/dist/esm/zonos-hello.entry.js +129 -51
  94. package/dist/esm/zonos-input.entry.js +2 -2
  95. package/dist/esm/zonos-invoice-cart-items_2.entry.js +6 -6
  96. package/dist/esm/zonos-invoice-finish_5.entry.js +10 -10
  97. package/dist/esm/zonos-invoice.entry.js +7 -7
  98. package/dist/esm/zonos-language-select_2.entry.js +2 -2
  99. package/dist/esm/zonos-logo.entry.js +1 -1
  100. package/dist/esm/zonos-policy-consent_2.entry.js +5 -5
  101. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  102. package/dist/esm/zonos-stripe-input.entry.js +2 -2
  103. package/dist/esm/zonos-text.entry.js +1 -1
  104. package/dist/esm/zonos-v-stack.entry.js +1 -1
  105. package/dist/esm/{zonosStore-DrIOAz4M.js → zonosStore-msUlqmSD.js} +2 -0
  106. package/dist/esm-es5/{cart-BDc4RTBJ.js → cart-BoQp8Ema.js} +1 -1
  107. package/dist/esm-es5/{collect-NRCK3t-M.js → collect-CdrR5OBy.js} +1 -1
  108. package/dist/esm-es5/{debounce-D4ko2kvZ.js → debounce-BR3PaG8X.js} +7 -7
  109. package/dist/esm-es5/debounce-CrmpwbEE.js +1 -0
  110. package/dist/esm-es5/{getBorderRadius-HwG64EKM.js → getBorderRadius-DYfkeXdx.js} +1 -1
  111. package/dist/esm-es5/{getMissingRequiredShippingFields-D-B-N1NH.js → getMissingRequiredShippingFields-Ks6_tpjn.js} +3 -3
  112. package/dist/esm-es5/{hasInclusivePrice-Bti4iudO.js → hasInclusivePrice-CbEfIhI5.js} +1 -1
  113. package/dist/esm-es5/index.js +4 -4
  114. package/dist/esm-es5/{invoice-DsvQvu4a.js → invoice-S1KahJ_Z.js} +1 -1
  115. package/dist/esm-es5/{localization-Bs6hVcKV.js → localization-BIh-4pc_.js} +14 -4
  116. package/dist/esm-es5/{paypal-BqyEZS_u.js → paypal-DNfvnuUU.js} +1 -1
  117. package/dist/esm-es5/{placeTestOrder-x3xwMAnW.js → placeTestOrder-CQaMKFOg.js} +1 -1
  118. package/dist/esm-es5/{renderCheckoutCurrency-DIBdWKN1.js → renderCheckoutCurrency-C2Tw73uR.js} +2 -2
  119. package/dist/esm-es5/{shouldShowLanguageSelect-Bb9sbQ41.js → shouldShowLanguageSelect-CCD7gpSY.js} +1 -1
  120. package/dist/esm-es5/{submitGtag-CCGQS060.js → submitGtag-df9AQ2zL.js} +1 -1
  121. package/dist/esm-es5/{throttle-D5GyA3yr.js → throttle-Cvlvb-dm.js} +2 -2
  122. package/dist/esm-es5/{updateCheckoutSessionAttributes-eRSqdC74.js → updateCheckoutSessionAttributes-4Jq6V4pO.js} +1 -1
  123. package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +1 -1
  124. package/dist/esm-es5/zonos-address-display_2.entry.js +1 -1
  125. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  126. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
  127. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  128. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  129. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  130. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  131. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  132. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  133. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  134. package/dist/esm-es5/zonos-collapse.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-hello-dialog.entry.js +1 -1
  142. package/dist/esm-es5/zonos-hello.entry.js +21 -24
  143. package/dist/esm-es5/zonos-input.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 +3 -3
  147. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  148. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  149. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
  150. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  151. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  152. package/dist/esm-es5/zonos-text.entry.js +1 -1
  153. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  154. package/dist/esm-es5/{zonosStore-DrIOAz4M.js → zonosStore-msUlqmSD.js} +1 -1
  155. package/dist/scripts/index.d.ts +36 -6
  156. package/dist/scripts/index.js +1 -1
  157. package/dist/scripts/loadZonos.js +1 -1
  158. package/dist/scripts/zonos.js +1 -1
  159. package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +5 -3
  160. package/dist/types/components/utils/hello/countryOverrideStorage.d.ts +1 -1
  161. package/dist/types/components/utils/hello/resolveHelloFloatPlacement.d.ts +39 -0
  162. package/dist/types/components.d.ts +4 -6
  163. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +10 -0
  164. package/dist/types/types/generated/graphql.internal.types.d.ts +239 -11
  165. package/dist/types/types/generated/graphql.internal.types.ts +302 -15
  166. package/dist/types/types/hello/HelloConfig.d.ts +12 -0
  167. package/dist/zonos-elements/index.esm.js +1 -1
  168. package/dist/zonos-elements/{p-d9527bd7.system.entry.js → p-04bded81.system.entry.js} +45 -45
  169. package/dist/zonos-elements/{p-18021e6b.entry.js → p-06fe2939.entry.js} +1 -1
  170. package/dist/zonos-elements/{p-058f07aa.system.entry.js → p-0a4a7742.system.entry.js} +1 -1
  171. package/dist/zonos-elements/{p-d261f27c.system.entry.js → p-0b81f8b9.system.entry.js} +16 -16
  172. package/dist/zonos-elements/{p-c5f17bad.entry.js → p-0fca452b.entry.js} +1 -1
  173. package/dist/zonos-elements/{p-72b6a006.system.entry.js → p-11defdca.system.entry.js} +18 -18
  174. package/dist/zonos-elements/{p-1568ab06.system.entry.js → p-1409de3b.system.entry.js} +1 -1
  175. package/dist/zonos-elements/{p-2466b5f0.system.entry.js → p-17c7ea4a.system.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-8328f44d.entry.js → p-193d9722.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-22fab1ba.system.entry.js → p-195f6e38.system.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-cc5306fe.system.entry.js → p-1bac5ac1.system.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-128485dc.entry.js → p-1c150f26.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-c4713ff1.system.entry.js → p-23352709.system.entry.js} +4 -4
  181. package/dist/zonos-elements/{p-cc949df1.system.entry.js → p-244e0302.system.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-e9a3bc27.system.entry.js → p-249c1ee1.system.entry.js} +3 -3
  183. package/dist/zonos-elements/{p-7681798d.entry.js → p-24f3c547.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-5c08d36b.entry.js → p-2603dce0.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-b78bab27.entry.js → p-34656e6c.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-4625058a.entry.js → p-39ee1558.entry.js} +1 -1
  187. package/dist/zonos-elements/{p-f8fd756a.system.entry.js → p-474e8a92.system.entry.js} +1 -1
  188. package/dist/zonos-elements/{p-0ff26236.system.entry.js → p-4806b264.system.entry.js} +1 -1
  189. package/dist/zonos-elements/{p-56159b7c.system.entry.js → p-5016d71b.system.entry.js} +58 -58
  190. package/dist/zonos-elements/{p-b96666ca.system.entry.js → p-51400242.system.entry.js} +3 -3
  191. package/dist/zonos-elements/{p-e126e9bd.system.entry.js → p-5236c676.system.entry.js} +80 -80
  192. package/dist/zonos-elements/{p-cf53f67a.entry.js → p-550d4eea.entry.js} +1 -1
  193. package/dist/zonos-elements/{p-36559431.system.entry.js → p-552fbde1.system.entry.js} +21 -21
  194. package/dist/zonos-elements/{p-a6faab6a.entry.js → p-55916c90.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-317d4665.system.entry.js → p-5b80aff2.system.entry.js} +15 -15
  196. package/dist/zonos-elements/p-69c3e367.system.entry.js +118 -0
  197. package/dist/zonos-elements/{p-3cc27e0e.system.entry.js → p-6abec43f.system.entry.js} +4 -4
  198. package/dist/zonos-elements/{p-635341d6.entry.js → p-6c41b00c.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-d451d5bc.system.entry.js → p-6db7c0b1.system.entry.js} +4 -4
  200. package/dist/zonos-elements/{p-cc17a230.entry.js → p-6e296228.entry.js} +1 -1
  201. package/dist/zonos-elements/{p-beeb9d36.system.entry.js → p-756d303f.system.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-B6X55m0b.js → p-7abqRc9V.js} +2 -2
  203. package/dist/zonos-elements/{p-3d536086.entry.js → p-82595838.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-34d1545a.entry.js → p-83aa1c8c.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-CaUXHglQ.system.js → p-8PPEbm_0.system.js} +9 -9
  206. package/dist/zonos-elements/{p-b6deae2b.system.entry.js → p-92fe9a1f.system.entry.js} +2 -2
  207. package/dist/zonos-elements/{p-5eb82be3.entry.js → p-938fc1e4.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-CZl1nwqv.system.js → p-B4Ufchqh.system.js} +3 -3
  209. package/dist/zonos-elements/p-BGktDPwA.system.js +1 -0
  210. package/dist/zonos-elements/{p-D2fOB4Wn.system.js → p-Be3Hpms1.system.js} +1 -1
  211. package/dist/zonos-elements/{p-D0erXw7p.js → p-BpDCLBwW.js} +1 -1
  212. package/dist/zonos-elements/p-Bu9WCfUC.system.js +1 -1
  213. package/dist/zonos-elements/{p-CPnR_T0a.system.js → p-BuU_p5DP.system.js} +58 -58
  214. package/dist/zonos-elements/{p-CaAod213.system.js → p-CBx5nYet.system.js} +1 -1
  215. package/dist/zonos-elements/{p-UM1aYZBV.system.js → p-CEK_Wk6v.system.js} +1 -1
  216. package/dist/zonos-elements/p-CFbfEmjN.js +1 -0
  217. package/dist/zonos-elements/{p-nU86HJ5w.js → p-CUaf1cEg.js} +1 -1
  218. package/dist/zonos-elements/p-C_z9WL8a.js +1 -0
  219. package/dist/zonos-elements/p-CcJF6xhQ.js +1 -0
  220. package/dist/zonos-elements/p-Cxuiqv1I.js +1 -0
  221. package/dist/zonos-elements/p-D-bZg-Pc.js +1 -0
  222. package/dist/zonos-elements/{p-CH6tsv9B.system.js → p-D4MevhAL.system.js} +3 -3
  223. package/dist/zonos-elements/{p-BybDGrH4.system.js → p-DI2vXnXc.system.js} +3 -3
  224. package/dist/zonos-elements/{p-CQyFoOXW.system.js → p-DNc279vN.system.js} +13 -13
  225. package/dist/zonos-elements/{p-Cd9xIgx7.system.js → p-DOD2I44l.system.js} +92 -82
  226. package/dist/zonos-elements/p-DQZncB2d.system.js +9 -0
  227. package/dist/zonos-elements/{p-NL_Eiq6m.system.js → p-DS-qw_qc.system.js} +15 -15
  228. package/dist/zonos-elements/p-DZ2mevDK.js +1 -0
  229. package/dist/zonos-elements/{p-uV7m6KrY.system.js → p-DoEHepOc.system.js} +1 -1
  230. package/dist/zonos-elements/{p-D4WI0B6-.system.js → p-DuufSrhH.system.js} +4 -4
  231. package/dist/zonos-elements/{p-MHVIIOVE.js → p-DzLNk-Pf.js} +1 -1
  232. package/dist/zonos-elements/{p-DqEtY53c.js → p-FRWZayxL.js} +1 -1
  233. package/dist/zonos-elements/p-Mrz_lnC1.js +1 -0
  234. package/dist/zonos-elements/{p-CtEsvWI6.js → p-W82paT5F.js} +1 -1
  235. package/dist/zonos-elements/{p-CVQ7-7E2.system.js → p-XDxdMlQl.system.js} +22 -22
  236. package/dist/zonos-elements/{p-CuhGrJBA.system.js → p-XqkqjeNV.system.js} +1 -1
  237. package/dist/zonos-elements/{p-8cac7911.system.entry.js → p-a40fd99b.system.entry.js} +12 -12
  238. package/dist/zonos-elements/{p-b68ca96f.entry.js → p-a938c174.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-9ebe9a36.entry.js → p-acd50b0b.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-fcfac62f.system.entry.js → p-b2dd7f02.system.entry.js} +1 -1
  241. package/dist/zonos-elements/{p-0f603278.system.entry.js → p-b5882fbb.system.entry.js} +2 -2
  242. package/dist/zonos-elements/{p-e582ae2a.entry.js → p-b79036fc.entry.js} +1 -1
  243. package/dist/zonos-elements/{p-6c6c65f0.entry.js → p-bb3546c0.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-02628b9f.entry.js → p-c1cbfdba.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-b88e521e.system.entry.js → p-c3646ae6.system.entry.js} +19 -19
  246. package/dist/zonos-elements/{p-be64d823.system.entry.js → p-c403f004.system.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-c090cc60.entry.js → p-c47ce656.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-68e0180a.entry.js → p-c5bab786.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-628a0f7f.entry.js → p-c961caaf.entry.js} +1 -1
  250. package/dist/zonos-elements/p-c9QtIdJX.js +1 -0
  251. package/dist/zonos-elements/{p-CGkdA4pY.js → p-clDfq9AL.js} +1 -1
  252. package/dist/zonos-elements/p-d168023b.entry.js +1 -0
  253. package/dist/zonos-elements/{p-3e59d41c.entry.js → p-d3d0656a.entry.js} +1 -1
  254. package/dist/zonos-elements/{p-9b6482ef.entry.js → p-d4d2b39e.entry.js} +1 -1
  255. package/dist/zonos-elements/p-d74bc3e8.entry.js +1 -0
  256. package/dist/zonos-elements/p-db87b0dd.entry.js +1 -0
  257. package/dist/zonos-elements/{p-f44631d5.entry.js → p-dea26048.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-5e074243.entry.js → p-defc2d18.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-bdba7d9e.system.entry.js → p-dfc87b10.system.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-03fbe813.system.entry.js → p-e005b6a5.system.entry.js} +1 -1
  261. package/dist/zonos-elements/{p-02ff6f8b.system.entry.js → p-e0e9cff5.system.entry.js} +42 -42
  262. package/dist/zonos-elements/p-f8b50aa0.entry.js +1 -0
  263. package/dist/zonos-elements/{p-ClUEwqZW.system.js → p-kaOxUR9u.system.js} +6 -6
  264. package/dist/zonos-elements/p-rVp8hgWw.js +1 -0
  265. package/dist/zonos-elements/{p-i1iCWKdv.js → p-sz4L-ZnB.js} +1 -1
  266. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  267. package/package.json +1 -1
  268. package/dist/esm-es5/debounce-DWPsxJsW.js +0 -1
  269. package/dist/zonos-elements/p-037d3688.entry.js +0 -1
  270. package/dist/zonos-elements/p-0466650f.entry.js +0 -1
  271. package/dist/zonos-elements/p-163b81c0.system.entry.js +0 -121
  272. package/dist/zonos-elements/p-3ERbuo5a.js +0 -1
  273. package/dist/zonos-elements/p-97f848f6.entry.js +0 -1
  274. package/dist/zonos-elements/p-9H2p9XKE.js +0 -1
  275. package/dist/zonos-elements/p-BANhKkF2.system.js +0 -1
  276. package/dist/zonos-elements/p-BJufDgh3.js +0 -1
  277. package/dist/zonos-elements/p-BSgVcCxT.system.js +0 -9
  278. package/dist/zonos-elements/p-CpvnCfKt.js +0 -1
  279. package/dist/zonos-elements/p-CtKp6AQ4.js +0 -1
  280. package/dist/zonos-elements/p-DdpeA8cH.js +0 -1
  281. package/dist/zonos-elements/p-DkirvyAh.js +0 -1
  282. package/dist/zonos-elements/p-a6354d15.entry.js +0 -1
  283. package/dist/zonos-elements/p-opB7B9YB.js +0 -1
  284. package/dist/zonos-elements/p-t_ClFAJR.js +0 -1
@@ -67,19 +67,21 @@
67
67
  @media screen and (min-width: 769px) {
68
68
  :host .zonos--hello-wrapper .zonos--hello-dialog-wrapper.zonos--hello-widget-float {
69
69
  position: fixed;
70
- bottom: 72px;
71
- right: 32px;
72
- width: auto;
73
- height: auto;
74
- z-index: 1001;
70
+ bottom: var(--zonos-elements-hello-float-inset-y, 72px);
71
+ right: var(--zonos-elements-hello-float-inset-x, 32px);
75
72
  }
76
73
  :host .zonos--hello-wrapper .zonos--hello-dialog-wrapper.zonos--hello-widget-float.zonos--hello-widget-left {
77
- left: 32px;
74
+ left: var(--zonos-elements-hello-float-inset-x, 32px);
78
75
  right: auto;
79
76
  }
80
77
  :host .zonos--hello-wrapper .zonos--hello-dialog-wrapper.zonos--hello-widget-float.zonos--hello-widget-top {
81
78
  bottom: auto;
82
- top: 32px;
79
+ top: var(--zonos-elements-hello-float-inset-y, 32px);
80
+ }
81
+ :host .zonos--hello-wrapper .zonos--hello-dialog-wrapper.zonos--hello-widget-float {
82
+ width: auto;
83
+ height: auto;
84
+ z-index: 1001;
83
85
  }
84
86
  }
85
87
  :host .zonos--hello-widget {
@@ -175,16 +177,16 @@
175
177
  }
176
178
  :host .zonos--hello-widget.zonos--hello-widget-float {
177
179
  position: fixed;
178
- bottom: 72px;
179
- right: 32px;
180
+ bottom: var(--zonos-elements-hello-float-inset-y, 72px);
181
+ right: var(--zonos-elements-hello-float-inset-x, 32px);
180
182
  }
181
183
  :host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left {
182
- left: 32px;
184
+ left: var(--zonos-elements-hello-float-inset-x, 32px);
183
185
  right: auto;
184
186
  }
185
187
  :host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top {
186
188
  bottom: auto;
187
- top: 32px;
189
+ top: var(--zonos-elements-hello-float-inset-y, 32px);
188
190
  }
189
191
  :host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message > .zonos--hello-message {
190
192
  border: none;
@@ -219,16 +221,16 @@
219
221
  }
220
222
  :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float {
221
223
  position: fixed;
222
- bottom: 72px;
223
- right: 32px;
224
+ bottom: var(--zonos-elements-hello-float-inset-y, 72px);
225
+ right: var(--zonos-elements-hello-float-inset-x, 32px);
224
226
  }
225
227
  :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left {
226
- left: 32px;
228
+ left: var(--zonos-elements-hello-float-inset-x, 32px);
227
229
  right: auto;
228
230
  }
229
231
  :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top {
230
232
  bottom: auto;
231
- top: 32px;
233
+ top: var(--zonos-elements-hello-float-inset-y, 32px);
232
234
  }
233
235
  :host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message > .zonos--hello-message {
234
236
  border: none;
@@ -14,6 +14,7 @@ import { getHasMoreSpaceOnRight } from "../../utils/hello/getHasMoreSpaceOnRight
14
14
  import { getHelloWidgetSize } from "../../utils/hello/getHelloWidgetSize";
15
15
  import { getProductsOnPage } from "../../utils/hello/getProductsOnPage";
16
16
  import { getZCountryUrlParam } from "../../utils/hello/getZCountryUrlParam";
17
+ import { resolveHelloFloatPlacement } from "../../utils/hello/resolveHelloFloatPlacement";
17
18
  import { setZCountryUrlParam } from "../../utils/hello/setZCountryUrlParam";
18
19
  import { shouldShowHelloWidget } from "../../utils/hello/shouldShowHelloWidget";
19
20
  import { log } from "../../utils/logging/log";
@@ -224,6 +225,8 @@ export class ZonosHello {
224
225
  return localizationStore.helloCountryList;
225
226
  }
226
227
  componentWillLoad() {
228
+ // Set before first paint so mobile uses mobile placement, not desktop.
229
+ this.isMobile = window.innerWidth <= 768;
227
230
  const initInterval = setInterval(async () => {
228
231
  if (!this.helloRef) {
229
232
  return;
@@ -309,50 +312,19 @@ export class ZonosHello {
309
312
  }
310
313
  }
311
314
  getHelloLocation() {
312
- const mobileLocation = this.mobileLocationOverride || zonosStore.helloSettings.mobileLocation;
313
- const desktopLocation = this.desktopLocationOverride || zonosStore.helloSettings.desktopLocation;
314
- const isMobileWindow = this.isMobile;
315
- switch (true) {
316
- // Mobile
317
- case isMobileWindow: {
318
- const isOnLeft = this.animateFromLeftOverride || (mobileLocation === null || mobileLocation === void 0 ? void 0 : mobileLocation.includes('LEFT'));
319
- const isOnTop = mobileLocation === null || mobileLocation === void 0 ? void 0 : mobileLocation.includes('TOP');
320
- return {
321
- isMobileWindow,
322
- isOnLeft,
323
- isOnTop,
324
- shouldFloat: !!mobileLocation,
325
- };
326
- }
327
- // Desktop
328
- default:
329
- case !isMobileWindow: {
330
- /**
331
- * Float on desktop when `desktopLocationOverride` is set (explicit
332
- * consumer request) OR when no anchor is specified and a
333
- * `desktopLocation` is configured in the store. With an anchor and no
334
- * override, the widget renders inline at the anchor.
335
- */
336
- const shouldFloat = !!this.desktopLocationOverride ||
337
- (!zonosStore.helloSettings.anchorElementSelector &&
338
- !!desktopLocation);
339
- // When a desktopLocation is set, derive the side deterministically
340
- // from it so RIGHT positions resolve to `false` (not `undefined`).
341
- // Spatial detection only runs as a fallback when no location is set
342
- // (e.g. inline / anchored placement).
343
- const isOnLeft = this.animateFromLeftOverride ||
344
- (shouldFloat && desktopLocation
345
- ? desktopLocation.includes('LEFT')
346
- : this.shouldAnimateLeftDesktop());
347
- const isOnTop = desktopLocation === null || desktopLocation === void 0 ? void 0 : desktopLocation.includes('TOP');
348
- return {
349
- isMobileWindow,
350
- isOnLeft,
351
- isOnTop,
352
- shouldFloat,
353
- };
354
- }
355
- }
315
+ // Enum @Prop `*LocationOverride` → component*; settings HelloPlacement object → settings*.
316
+ return resolveHelloFloatPlacement({
317
+ anchorElementSelector: zonosStore.helloSettings.anchorElementSelector,
318
+ animateFromLeftOverride: this.animateFromLeftOverride,
319
+ componentDesktopLocation: this.desktopLocationOverride,
320
+ componentMobileLocation: this.mobileLocationOverride,
321
+ desktopLocation: zonosStore.helloSettings.desktopLocation,
322
+ isMobileWindow: this.isMobile,
323
+ mobileLocation: zonosStore.helloSettings.mobileLocation,
324
+ settingsDesktopPlacement: zonosStore.helloSettings.desktopLocationOverride,
325
+ settingsMobilePlacement: zonosStore.helloSettings.mobileLocationOverride,
326
+ shouldAnimateLeftDesktop: () => Boolean(this.shouldAnimateLeftDesktop()),
327
+ });
356
328
  }
357
329
  handleAppearanceSettingsOverrideChange() {
358
330
  var _a;
@@ -372,7 +344,7 @@ export class ZonosHello {
372
344
  return null;
373
345
  }
374
346
  const { selectedCountryCode, targetCurrency } = localizationStore;
375
- const { isOnLeft, isOnTop, shouldFloat } = this.getHelloLocation();
347
+ const { horizontalOffset, isOnLeft, isOnTop, shouldFloat, verticalOffset } = this.getHelloLocation();
376
348
  const appearanceSettings = mergeConfig(zonosStore.appearance, this.appearanceSettingsOverride || null);
377
349
  const { theme } = appearanceSettings;
378
350
  const restrictedItemsOnPage = (_b = this.allRestrictedItems) === null || _b === void 0 ? void 0 : _b.filter(product => this.productsOnPage.some(restriction => restriction.description === product.itemDescription));
@@ -388,7 +360,15 @@ export class ZonosHello {
388
360
  });
389
361
  }
390
362
  const widgetSize = getHelloWidgetSize(zonosStore.helloSettings.widgetSize);
391
- return (h(Host, { class: "zonos--hello zonos--elements", "data-theme": theme, style: { '--zonos-elements-hello-widget-size': `${widgetSize}px` } }, showHello && (h("div", { class: classes([
363
+ const hostStyle = {
364
+ '--zonos-elements-hello-widget-size': `${widgetSize}px`,
365
+ };
366
+ if (horizontalOffset != null && verticalOffset != null) {
367
+ hostStyle['--zonos-elements-hello-float-inset-x'] =
368
+ `${horizontalOffset}px`;
369
+ hostStyle['--zonos-elements-hello-float-inset-y'] = `${verticalOffset}px`;
370
+ }
371
+ return (h(Host, { class: "zonos--hello zonos--elements", "data-theme": theme, style: hostStyle }, showHello && (h("div", { class: classes([
392
372
  'zonos--hello-wrapper',
393
373
  shouldFloat && 'zonos--hello-widget-float',
394
374
  ]) }, h("button", { class: classes([
@@ -445,11 +425,8 @@ export class ZonosHello {
445
425
  "required": false,
446
426
  "optional": true,
447
427
  "docs": {
448
- "tags": [{
449
- "name": "default",
450
- "text": "false"
451
- }],
452
- "text": "Force mobile styling instead of media query and use the passed location value"
428
+ "tags": [],
429
+ "text": "Override the configured mobile floating location (enum). Takes precedence over\n`helloSettings.mobileLocationOverride` (HelloPlacement) and\n`helloSettings.mobileLocation`."
453
430
  },
454
431
  "getter": false,
455
432
  "setter": false,
@@ -475,7 +452,7 @@ export class ZonosHello {
475
452
  "optional": true,
476
453
  "docs": {
477
454
  "tags": [],
478
- "text": "Override the configured desktop floating location. Takes precedence over\n`helloSettings.desktopLocation` and also drives the peek-message animation\ndirection, so consumers no longer need `animateFromLeftOverride` for\ndesktop positioning."
455
+ "text": "Override the configured desktop floating location. Takes precedence over\n`helloSettings.desktopLocationOverride` (HelloPlacement) and\n`helloSettings.desktopLocation`, and also drives the peek-message animation\ndirection, so consumers no longer need `animateFromLeftOverride` for\ndesktop positioning."
479
456
  },
480
457
  "getter": false,
481
458
  "setter": false,
@@ -357,7 +357,6 @@ const localizationStoreUpdateSelectedLocale = (requestedLocale) => {
357
357
  };
358
358
  const initLocalizationStore = async () => {
359
359
  var _a;
360
- migrateCountryOverrideStorage();
361
360
  const urlCountryAtLoad = getZCountryUrlParam();
362
361
  const storedCountryAtLoad = getCountryOverrideStorage();
363
362
  const shouldPrefetchGeo = !!storedCountryAtLoad && !urlCountryAtLoad;
@@ -420,6 +419,10 @@ const initLocalizationStore = async () => {
420
419
  newSelectedCountryCode: fallbackCountry,
421
420
  });
422
421
  }
422
+ // After reconcile + fallback: only then is selectedCountryCode the
423
+ // country Hello kept. Mirroring earlier (or without this match) can
424
+ // publish a discarded localStorage leftover into sessionStorage.
425
+ migrateCountryOverrideStorage(localizationStore.selectedCountryCode);
423
426
  if (localizationStore.selectedCountryCode) {
424
427
  syncSelectedCountryToPage(localizationStore.selectedCountryCode);
425
428
  }
@@ -71,9 +71,11 @@ const { dispose: zonosStoreDispose, onChange: zonosStoreOnChange, reset, state:
71
71
  * Default to bottom right so hello would float if anchorElementSelector is not set. Otherwise, this will be ignored
72
72
  */
73
73
  desktopLocation: 'BOTTOM_RIGHT',
74
+ desktopLocationOverride: null,
74
75
  excludedUrlPatterns: [],
75
76
  homepageUrlPattern: '',
76
77
  mobileLocation: 'BOTTOM_RIGHT',
78
+ mobileLocationOverride: null,
77
79
  mode: 'LIVE',
78
80
  notFoundElementFallback: null,
79
81
  organization: '',
@@ -9,9 +9,6 @@ const withBlockedStorage = (run) => {
9
9
  // (Safari private mode, cross-origin iframes).
10
10
  }
11
11
  };
12
- const clearSessionOverride = () => {
13
- window.sessionStorage.removeItem(COUNTRY_OVERRIDE_KEY);
14
- };
15
12
  const readStoredCountry = (storage) => {
16
13
  try {
17
14
  const value = storage.getItem(COUNTRY_OVERRIDE_KEY);
@@ -24,26 +21,35 @@ const readStoredCountry = (storage) => {
24
21
  return null;
25
22
  }
26
23
  };
24
+ const writeOverride = (storage, countryCode) => {
25
+ storage.setItem(COUNTRY_OVERRIDE_KEY, countryCode);
26
+ };
27
+ const withEachStorage = (run) => {
28
+ withBlockedStorage(() => run(window.localStorage));
29
+ withBlockedStorage(() => run(window.sessionStorage));
30
+ };
27
31
  export const getCountryOverrideStorage = () => {
28
32
  var _a;
29
33
  return (_a = readStoredCountry(window.localStorage)) !== null && _a !== void 0 ? _a : readStoredCountry(window.sessionStorage);
30
34
  };
31
- export const migrateCountryOverrideStorage = () => {
35
+ export const migrateCountryOverrideStorage = (selectedCountryCode) => {
36
+ if (!selectedCountryCode) {
37
+ return;
38
+ }
32
39
  withBlockedStorage(() => {
33
- if (readStoredCountry(window.localStorage)) {
34
- clearSessionOverride();
40
+ const localCountry = readStoredCountry(window.localStorage);
41
+ // Only mirror the country Hello actually kept. A failed localStorage
42
+ // clear can leave a discarded country in local; never copy that to
43
+ // session for older Elements. Never copy session → local.
44
+ if (localCountry === selectedCountryCode) {
45
+ writeOverride(window.sessionStorage, localCountry);
35
46
  }
36
47
  });
37
48
  };
38
49
  export const setCountryOverrideStorage = (countryCode) => {
39
- withBlockedStorage(() => {
40
- window.localStorage.setItem(COUNTRY_OVERRIDE_KEY, countryCode);
41
- clearSessionOverride();
42
- });
50
+ // Dual-write so older Elements that only read sessionStorage see the pick.
51
+ withEachStorage(storage => writeOverride(storage, countryCode));
43
52
  };
44
53
  export const clearCountryOverrideStorage = () => {
45
- withBlockedStorage(() => {
46
- window.localStorage.removeItem(COUNTRY_OVERRIDE_KEY);
47
- clearSessionOverride();
48
- });
54
+ withEachStorage(storage => storage.removeItem(COUNTRY_OVERRIDE_KEY));
49
55
  };
@@ -0,0 +1,98 @@
1
+ const isValidHelloPlacement = (value) => {
2
+ if (value == null || typeof value !== 'object') {
3
+ return false;
4
+ }
5
+ const { anchor, horizontalOffset, verticalOffset } = value;
6
+ return (typeof anchor === 'string' &&
7
+ anchor.length > 0 &&
8
+ typeof horizontalOffset === 'number' &&
9
+ Number.isFinite(horizontalOffset) &&
10
+ typeof verticalOffset === 'number' &&
11
+ Number.isFinite(verticalOffset));
12
+ };
13
+ const includesLeft = (location) => Boolean(location === null || location === void 0 ? void 0 : location.includes('LEFT'));
14
+ const includesTop = (location) => Boolean(location === null || location === void 0 ? void 0 : location.includes('TOP'));
15
+ const buildResolved = ({ anchor, animateFromLeftOverride, horizontalOffset, isMobileWindow, isOnLeft, shouldFloat, verticalOffset, }) => ({
16
+ anchor,
17
+ horizontalOffset,
18
+ isMobileWindow,
19
+ isOnLeft: isOnLeft !== null && isOnLeft !== void 0 ? isOnLeft : (Boolean(animateFromLeftOverride) || includesLeft(anchor)),
20
+ isOnTop: includesTop(anchor),
21
+ shouldFloat,
22
+ verticalOffset,
23
+ });
24
+ /**
25
+ * Resolve active Hello float placement per viewport.
26
+ * Precedence: component enum prop → settings HelloPlacement → settings location enum.
27
+ *
28
+ * When the winning source is a component enum prop or settings `HelloPlacement`,
29
+ * `shouldFloat` is always true — including when `anchorElementSelector` is set.
30
+ * That matches existing prop-forced float behavior and FR-006 / data-model rules
31
+ * (placement implies floating; enum fallback still respects the anchor selector).
32
+ */
33
+ export const resolveHelloFloatPlacement = (params) => {
34
+ const { anchorElementSelector, animateFromLeftOverride, componentDesktopLocation, componentMobileLocation, desktopLocation, isMobileWindow, mobileLocation, settingsDesktopPlacement, settingsMobilePlacement, shouldAnimateLeftDesktop, } = params;
35
+ if (isMobileWindow) {
36
+ if (componentMobileLocation) {
37
+ return buildResolved({
38
+ anchor: componentMobileLocation,
39
+ animateFromLeftOverride,
40
+ horizontalOffset: null,
41
+ isMobileWindow: true,
42
+ shouldFloat: true,
43
+ verticalOffset: null,
44
+ });
45
+ }
46
+ if (isValidHelloPlacement(settingsMobilePlacement)) {
47
+ return buildResolved({
48
+ anchor: settingsMobilePlacement.anchor,
49
+ animateFromLeftOverride,
50
+ horizontalOffset: settingsMobilePlacement.horizontalOffset,
51
+ isMobileWindow: true,
52
+ shouldFloat: true,
53
+ verticalOffset: settingsMobilePlacement.verticalOffset,
54
+ });
55
+ }
56
+ return buildResolved({
57
+ anchor: mobileLocation,
58
+ animateFromLeftOverride,
59
+ horizontalOffset: null,
60
+ isMobileWindow: true,
61
+ shouldFloat: Boolean(mobileLocation),
62
+ verticalOffset: null,
63
+ });
64
+ }
65
+ if (componentDesktopLocation) {
66
+ return buildResolved({
67
+ anchor: componentDesktopLocation,
68
+ animateFromLeftOverride,
69
+ horizontalOffset: null,
70
+ isMobileWindow: false,
71
+ shouldFloat: true,
72
+ verticalOffset: null,
73
+ });
74
+ }
75
+ if (isValidHelloPlacement(settingsDesktopPlacement)) {
76
+ return buildResolved({
77
+ anchor: settingsDesktopPlacement.anchor,
78
+ animateFromLeftOverride,
79
+ horizontalOffset: settingsDesktopPlacement.horizontalOffset,
80
+ isMobileWindow: false,
81
+ shouldFloat: true,
82
+ verticalOffset: settingsDesktopPlacement.verticalOffset,
83
+ });
84
+ }
85
+ const shouldFloat = !anchorElementSelector && Boolean(desktopLocation);
86
+ const isOnLeft = Boolean(animateFromLeftOverride) ||
87
+ (shouldFloat && desktopLocation
88
+ ? includesLeft(desktopLocation)
89
+ : Boolean(shouldAnimateLeftDesktop === null || shouldAnimateLeftDesktop === void 0 ? void 0 : shouldAnimateLeftDesktop()));
90
+ return buildResolved({
91
+ anchor: desktopLocation,
92
+ horizontalOffset: null,
93
+ isMobileWindow: false,
94
+ isOnLeft,
95
+ shouldFloat,
96
+ verticalOffset: null,
97
+ });
98
+ };