@zonos/elements 1.3.12-alpha.1 → 1.3.12-alpha.11

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 (169) hide show
  1. package/dist/cjs/{cart-fcddc0e6.js → cart-37e23be9.js} +739 -3
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/sendErrorLog-7b3d82e4.js +29 -0
  4. package/dist/cjs/{submitGtag-ec6ead54.js → submitGtag-79dbdad0.js} +12 -23
  5. package/dist/cjs/zonos-address_4.cjs.entry.js +41 -17
  6. package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
  7. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +8 -8
  8. package/dist/cjs/zonos-checkout.cjs.entry.js +7 -7
  9. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-country-select_3.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-elements.cjs.js +1 -1
  13. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +90 -26
  14. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-payment.cjs.entry.js +1 -1
  16. package/dist/collection/components/hello/zonos-hello-dialog/assets/importIcon.svg +4 -0
  17. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +85 -25
  18. package/dist/collection/components/store/translationStore/strings.arabic.js +36 -0
  19. package/dist/collection/components/store/translationStore/strings.base.js +36 -0
  20. package/dist/collection/components/store/translationStore/strings.chinese.js +36 -0
  21. package/dist/collection/components/store/translationStore/strings.danish.js +36 -0
  22. package/dist/collection/components/store/translationStore/strings.dutch.js +36 -0
  23. package/dist/collection/components/store/translationStore/strings.french.js +36 -0
  24. package/dist/collection/components/store/translationStore/strings.german.js +36 -0
  25. package/dist/collection/components/store/translationStore/strings.hebrew.js +36 -0
  26. package/dist/collection/components/store/translationStore/strings.indonesian.js +36 -0
  27. package/dist/collection/components/store/translationStore/strings.italian.js +36 -0
  28. package/dist/collection/components/store/translationStore/strings.japanese.js +36 -0
  29. package/dist/collection/components/store/translationStore/strings.korean.js +36 -0
  30. package/dist/collection/components/store/translationStore/strings.norwegian.js +36 -0
  31. package/dist/collection/components/store/translationStore/strings.polish.js +36 -0
  32. package/dist/collection/components/store/translationStore/strings.portuguese.js +36 -0
  33. package/dist/collection/components/store/translationStore/strings.russian.js +36 -0
  34. package/dist/collection/components/store/translationStore/strings.spanish.js +36 -0
  35. package/dist/collection/components/store/translationStore/strings.swedish.js +36 -0
  36. package/dist/collection/components/store/translationStore/strings.turkish.js +36 -0
  37. package/dist/collection/components/store/translationStore/strings.vietnamese.js +36 -0
  38. package/dist/collection/components/store/translationStore.js +19 -3
  39. package/dist/collection/components/stripe/zonos-address/zonos-address.js +41 -15
  40. package/dist/collection/components/utils/api/trackConversionEvent.js +12 -3
  41. package/dist/collection/components/utils/logging/getNavigatorConnection.js +16 -0
  42. package/dist/collection/components/utils/logging/sendLoadScriptLog.js +16 -0
  43. package/dist/collection/scripts/zonosBase.js +1 -0
  44. package/dist/collection/types/LogLoadScriptRequestBody.js +1 -0
  45. package/dist/collection/types/generated/graphql.customer.types.js +64 -14
  46. package/dist/collection/types/generated/graphql.frontend.types.js +7 -0
  47. package/dist/components/sendErrorLog.js +21 -0
  48. package/dist/components/stripe.js +740 -4
  49. package/dist/components/trackConversionEvent.js +12 -4
  50. package/dist/components/zonos-address2.js +41 -15
  51. package/dist/components/zonos-checkout-finish2.js +3 -20
  52. package/dist/components/zonos-checkout.js +3 -2
  53. package/dist/components/zonos-controller.js +1 -1
  54. package/dist/components/zonos-hello-dialog2.js +89 -25
  55. package/dist/components/zonos-hello.js +1 -1
  56. package/dist/components/zonos-link-authentication2.js +1 -1
  57. package/dist/esm/{cart-228e1ef7.js → cart-7961927b.js} +739 -3
  58. package/dist/esm/loader.js +1 -1
  59. package/dist/esm/sendErrorLog-4d9581da.js +26 -0
  60. package/dist/esm/{submitGtag-c3727595.js → submitGtag-9ec64109.js} +13 -23
  61. package/dist/esm/zonos-address_4.entry.js +40 -16
  62. package/dist/esm/zonos-card_2.entry.js +1 -1
  63. package/dist/esm/zonos-cart-items_10.entry.js +3 -3
  64. package/dist/esm/zonos-checkout.entry.js +3 -3
  65. package/dist/esm/zonos-controller.entry.js +1 -1
  66. package/dist/esm/zonos-country-flag.entry.js +1 -1
  67. package/dist/esm/zonos-country-select_3.entry.js +1 -1
  68. package/dist/esm/zonos-elements.js +1 -1
  69. package/dist/esm/zonos-hello-dialog.entry.js +90 -26
  70. package/dist/esm/zonos-hello.entry.js +1 -1
  71. package/dist/esm/zonos-payment.entry.js +1 -1
  72. package/dist/esm-es5/cart-7961927b.js +1 -0
  73. package/dist/esm-es5/loader.js +1 -1
  74. package/dist/esm-es5/sendErrorLog-4d9581da.js +1 -0
  75. package/dist/esm-es5/submitGtag-9ec64109.js +1 -0
  76. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  77. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  78. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
  79. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  80. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  81. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  82. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  83. package/dist/esm-es5/zonos-elements.js +1 -1
  84. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  85. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  86. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  87. package/dist/scripts/loadZonos.js +1 -1
  88. package/dist/scripts/zonos.js +1 -1
  89. package/dist/scripts/zonosBase.js +1 -1
  90. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +9 -0
  91. package/dist/types/components/store/translationStore/strings.arabic.d.ts +36 -0
  92. package/dist/types/components/store/translationStore/strings.base.d.ts +36 -0
  93. package/dist/types/components/store/translationStore/strings.chinese.d.ts +36 -0
  94. package/dist/types/components/store/translationStore/strings.danish.d.ts +36 -0
  95. package/dist/types/components/store/translationStore/strings.dutch.d.ts +36 -0
  96. package/dist/types/components/store/translationStore/strings.french.d.ts +36 -0
  97. package/dist/types/components/store/translationStore/strings.german.d.ts +36 -0
  98. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +36 -0
  99. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +36 -0
  100. package/dist/types/components/store/translationStore/strings.italian.d.ts +36 -0
  101. package/dist/types/components/store/translationStore/strings.japanese.d.ts +36 -0
  102. package/dist/types/components/store/translationStore/strings.korean.d.ts +36 -0
  103. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +36 -0
  104. package/dist/types/components/store/translationStore/strings.polish.d.ts +36 -0
  105. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +36 -0
  106. package/dist/types/components/store/translationStore/strings.russian.d.ts +36 -0
  107. package/dist/types/components/store/translationStore/strings.spanish.d.ts +36 -0
  108. package/dist/types/components/store/translationStore/strings.swedish.d.ts +36 -0
  109. package/dist/types/components/store/translationStore/strings.turkish.d.ts +36 -0
  110. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +36 -0
  111. package/dist/types/components/store/translationStore.d.ts +24 -1
  112. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +7 -1
  113. package/dist/types/components/utils/api/getCountryLandedCost.d.ts +10 -1
  114. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  115. package/dist/types/components/utils/logging/getNavigatorConnection.d.ts +8 -0
  116. package/dist/types/components/utils/logging/sendLoadScriptLog.d.ts +4 -0
  117. package/dist/types/scripts/zonosBase.d.ts +5 -0
  118. package/dist/types/types/LogLoadScriptRequestBody.d.ts +12 -0
  119. package/dist/types/types/checkout/CheckoutConfig.d.ts +1 -1
  120. package/dist/types/types/generated/graphql.customer.types.d.ts +91 -18
  121. package/dist/types/types/generated/graphql.customer.types.ts +132 -22
  122. package/dist/types/types/generated/graphql.frontend.types.d.ts +28 -3
  123. package/dist/types/types/generated/graphql.frontend.types.ts +51 -3
  124. package/dist/types/types/global.d.ts +1 -2
  125. package/dist/zonos-elements/assets/importIcon.svg +4 -0
  126. package/dist/zonos-elements/p-0bdac452.system.js +1 -0
  127. package/dist/zonos-elements/{p-5d5c0fbf.entry.js → p-2191b884.entry.js} +1 -1
  128. package/dist/zonos-elements/p-2b916526.js +1 -0
  129. package/dist/zonos-elements/{p-5f662cf2.entry.js → p-2d5c8eb7.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-67ff446b.system.entry.js → p-339c505b.system.entry.js} +1 -1
  131. package/dist/zonos-elements/{p-ac5aecca.entry.js → p-33f5634a.entry.js} +1 -1
  132. package/dist/zonos-elements/p-431648d8.system.entry.js +1 -0
  133. package/dist/zonos-elements/p-44842b39.system.entry.js +1 -0
  134. package/dist/zonos-elements/{p-14a2824f.entry.js → p-44f4dd4b.entry.js} +1 -1
  135. package/dist/zonos-elements/{p-35c328ba.system.entry.js → p-4b3923d2.system.entry.js} +1 -1
  136. package/dist/zonos-elements/{p-30cd191f.entry.js → p-4eba3abe.entry.js} +1 -1
  137. package/dist/zonos-elements/p-5a3ceb49.entry.js +1 -0
  138. package/dist/zonos-elements/p-5fdf59db.system.js +1 -0
  139. package/dist/zonos-elements/p-63775f6d.js +1 -0
  140. package/dist/zonos-elements/p-6e81adba.system.js +1 -1
  141. package/dist/zonos-elements/{p-5f6f0581.system.entry.js → p-7efb9c12.system.entry.js} +1 -1
  142. package/dist/zonos-elements/{p-5dbb80df.system.entry.js → p-8de91e15.system.entry.js} +1 -1
  143. package/dist/zonos-elements/{p-c815e8b4.system.entry.js → p-bdb72353.system.entry.js} +1 -1
  144. package/dist/zonos-elements/{p-0082c5be.system.entry.js → p-d117ea39.system.entry.js} +1 -1
  145. package/dist/zonos-elements/{p-499d7f5d.system.entry.js → p-d6aa3011.system.entry.js} +1 -1
  146. package/dist/zonos-elements/p-dd4f3724.system.js +1 -0
  147. package/dist/zonos-elements/{p-925ae524.entry.js → p-e1796e2a.entry.js} +1 -1
  148. package/dist/zonos-elements/p-e4be7bd8.js +1 -0
  149. package/dist/zonos-elements/{p-7ff3a533.system.entry.js → p-e5fd850c.system.entry.js} +1 -1
  150. package/dist/zonos-elements/p-e90e2126.entry.js +1 -0
  151. package/dist/zonos-elements/{p-db1adc42.entry.js → p-ea06d683.entry.js} +1 -1
  152. package/dist/zonos-elements/{p-11f1b5fb.entry.js → p-f0b5d2fb.entry.js} +1 -1
  153. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  154. package/package.json +1 -1
  155. package/dist/cjs/isCheckoutMobile-f491ca7c.js +0 -8
  156. package/dist/esm/isCheckoutMobile-8846dccb.js +0 -6
  157. package/dist/esm-es5/cart-228e1ef7.js +0 -1
  158. package/dist/esm-es5/isCheckoutMobile-8846dccb.js +0 -1
  159. package/dist/esm-es5/submitGtag-c3727595.js +0 -1
  160. package/dist/zonos-elements/p-0679e872.system.entry.js +0 -1
  161. package/dist/zonos-elements/p-09dbb0e9.entry.js +0 -1
  162. package/dist/zonos-elements/p-55940b5a.system.entry.js +0 -1
  163. package/dist/zonos-elements/p-770e5b9e.js +0 -1
  164. package/dist/zonos-elements/p-81a54668.js +0 -1
  165. package/dist/zonos-elements/p-94bbf247.system.js +0 -1
  166. package/dist/zonos-elements/p-960e4021.system.js +0 -1
  167. package/dist/zonos-elements/p-aed0098c.system.js +0 -1
  168. package/dist/zonos-elements/p-d11b2449.js +0 -1
  169. package/dist/zonos-elements/p-d31e5fcc.entry.js +0 -1
@@ -1,10 +1,22 @@
1
1
  export declare const stringsSpanish: {
2
+ '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
+ value: string;
4
+ };
5
+ '${percentage} GST due on any order above ${threshold}.': {
6
+ value: string;
7
+ };
2
8
  'Above de minimis threshold for': {
3
9
  value: string;
4
10
  };
5
11
  Address: {
6
12
  value: string;
7
13
  };
14
+ 'Address line 1': {
15
+ value: string;
16
+ };
17
+ 'Address line 2': {
18
+ value: string;
19
+ };
8
20
  Back: {
9
21
  value: string;
10
22
  };
@@ -14,12 +26,18 @@ export declare const stringsSpanish: {
14
26
  'Cart subtotal': {
15
27
  value: string;
16
28
  };
29
+ City: {
30
+ value: string;
31
+ };
17
32
  Contact: {
18
33
  value: string;
19
34
  };
20
35
  'Continue to shipping': {
21
36
  value: string;
22
37
  };
38
+ Country: {
39
+ value: string;
40
+ };
23
41
  Customer: {
24
42
  value: string;
25
43
  };
@@ -59,6 +77,9 @@ export declare const stringsSpanish: {
59
77
  'Know about duties and taxes before you buy. Shop with confidence!': {
60
78
  value: string;
61
79
  };
80
+ Name: {
81
+ value: string;
82
+ };
62
83
  'No shipping method selected': {
63
84
  value: string;
64
85
  };
@@ -77,6 +98,9 @@ export declare const stringsSpanish: {
77
98
  'Order total': {
78
99
  value: string;
79
100
  };
101
+ 'Orders to ${countryName} must be over ${threshold} to ship.': {
102
+ value: string;
103
+ };
80
104
  Pay: {
81
105
  value: string;
82
106
  };
@@ -98,6 +122,12 @@ export declare const stringsSpanish: {
98
122
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
99
123
  value: string;
100
124
  };
125
+ 'Please resolve the following errors:': {
126
+ value: string;
127
+ };
128
+ 'Postal code': {
129
+ value: string;
130
+ };
101
131
  'Powered by': {
102
132
  value: string;
103
133
  };
@@ -140,6 +170,9 @@ export declare const stringsSpanish: {
140
170
  Spend: {
141
171
  value: string;
142
172
  };
173
+ State: {
174
+ value: string;
175
+ };
143
176
  'Taxes will apply to all orders': {
144
177
  value: string;
145
178
  };
@@ -176,6 +209,9 @@ export declare const stringsSpanish: {
176
209
  'duty free': {
177
210
  value: string;
178
211
  };
212
+ 'only supports Latin characters (A-Z, a-z)': {
213
+ value: string;
214
+ };
179
215
  'tax free': {
180
216
  value: string;
181
217
  };
@@ -1,10 +1,22 @@
1
1
  export declare const stringsSwedish: {
2
+ '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
+ value: string;
4
+ };
5
+ '${percentage} GST due on any order above ${threshold}.': {
6
+ value: string;
7
+ };
2
8
  'Above de minimis threshold for': {
3
9
  value: string;
4
10
  };
5
11
  Address: {
6
12
  value: string;
7
13
  };
14
+ 'Address line 1': {
15
+ value: string;
16
+ };
17
+ 'Address line 2': {
18
+ value: string;
19
+ };
8
20
  Back: {
9
21
  value: string;
10
22
  };
@@ -14,12 +26,18 @@ export declare const stringsSwedish: {
14
26
  'Cart subtotal': {
15
27
  value: string;
16
28
  };
29
+ City: {
30
+ value: string;
31
+ };
17
32
  Contact: {
18
33
  value: string;
19
34
  };
20
35
  'Continue to shipping': {
21
36
  value: string;
22
37
  };
38
+ Country: {
39
+ value: string;
40
+ };
23
41
  Customer: {
24
42
  value: string;
25
43
  };
@@ -59,6 +77,9 @@ export declare const stringsSwedish: {
59
77
  'Know about duties and taxes before you buy. Shop with confidence!': {
60
78
  value: string;
61
79
  };
80
+ Name: {
81
+ value: string;
82
+ };
62
83
  'No shipping method selected': {
63
84
  value: string;
64
85
  };
@@ -77,6 +98,9 @@ export declare const stringsSwedish: {
77
98
  'Order total': {
78
99
  value: string;
79
100
  };
101
+ 'Orders to ${countryName} must be over ${threshold} to ship.': {
102
+ value: string;
103
+ };
80
104
  Pay: {
81
105
  value: string;
82
106
  };
@@ -98,6 +122,12 @@ export declare const stringsSwedish: {
98
122
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
99
123
  value: string;
100
124
  };
125
+ 'Please resolve the following errors:': {
126
+ value: string;
127
+ };
128
+ 'Postal code': {
129
+ value: string;
130
+ };
101
131
  'Powered by': {
102
132
  value: string;
103
133
  };
@@ -140,6 +170,9 @@ export declare const stringsSwedish: {
140
170
  Spend: {
141
171
  value: string;
142
172
  };
173
+ State: {
174
+ value: string;
175
+ };
143
176
  'Taxes will apply to all orders': {
144
177
  value: string;
145
178
  };
@@ -176,6 +209,9 @@ export declare const stringsSwedish: {
176
209
  'duty free': {
177
210
  value: string;
178
211
  };
212
+ 'only supports Latin characters (A-Z, a-z)': {
213
+ value: string;
214
+ };
179
215
  'tax free': {
180
216
  value: string;
181
217
  };
@@ -1,10 +1,22 @@
1
1
  export declare const stringsTurkish: {
2
+ '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
+ value: string;
4
+ };
5
+ '${percentage} GST due on any order above ${threshold}.': {
6
+ value: string;
7
+ };
2
8
  'Above de minimis threshold for': {
3
9
  value: string;
4
10
  };
5
11
  Address: {
6
12
  value: string;
7
13
  };
14
+ 'Address line 1': {
15
+ value: string;
16
+ };
17
+ 'Address line 2': {
18
+ value: string;
19
+ };
8
20
  Back: {
9
21
  value: string;
10
22
  };
@@ -14,12 +26,18 @@ export declare const stringsTurkish: {
14
26
  'Cart subtotal': {
15
27
  value: string;
16
28
  };
29
+ City: {
30
+ value: string;
31
+ };
17
32
  Contact: {
18
33
  value: string;
19
34
  };
20
35
  'Continue to shipping': {
21
36
  value: string;
22
37
  };
38
+ Country: {
39
+ value: string;
40
+ };
23
41
  Customer: {
24
42
  value: string;
25
43
  };
@@ -59,6 +77,9 @@ export declare const stringsTurkish: {
59
77
  'Know about duties and taxes before you buy. Shop with confidence!': {
60
78
  value: string;
61
79
  };
80
+ Name: {
81
+ value: string;
82
+ };
62
83
  'No shipping method selected': {
63
84
  value: string;
64
85
  };
@@ -77,6 +98,9 @@ export declare const stringsTurkish: {
77
98
  'Order total': {
78
99
  value: string;
79
100
  };
101
+ 'Orders to ${countryName} must be over ${threshold} to ship.': {
102
+ value: string;
103
+ };
80
104
  Pay: {
81
105
  value: string;
82
106
  };
@@ -98,6 +122,12 @@ export declare const stringsTurkish: {
98
122
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
99
123
  value: string;
100
124
  };
125
+ 'Please resolve the following errors:': {
126
+ value: string;
127
+ };
128
+ 'Postal code': {
129
+ value: string;
130
+ };
101
131
  'Powered by': {
102
132
  value: string;
103
133
  };
@@ -140,6 +170,9 @@ export declare const stringsTurkish: {
140
170
  Spend: {
141
171
  value: string;
142
172
  };
173
+ State: {
174
+ value: string;
175
+ };
143
176
  'Taxes will apply to all orders': {
144
177
  value: string;
145
178
  };
@@ -176,6 +209,9 @@ export declare const stringsTurkish: {
176
209
  'duty free': {
177
210
  value: string;
178
211
  };
212
+ 'only supports Latin characters (A-Z, a-z)': {
213
+ value: string;
214
+ };
179
215
  'tax free': {
180
216
  value: string;
181
217
  };
@@ -1,10 +1,22 @@
1
1
  export declare const stringsVietnamese: {
2
+ '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
+ value: string;
4
+ };
5
+ '${percentage} GST due on any order above ${threshold}.': {
6
+ value: string;
7
+ };
2
8
  'Above de minimis threshold for': {
3
9
  value: string;
4
10
  };
5
11
  Address: {
6
12
  value: string;
7
13
  };
14
+ 'Address line 1': {
15
+ value: string;
16
+ };
17
+ 'Address line 2': {
18
+ value: string;
19
+ };
8
20
  Back: {
9
21
  value: string;
10
22
  };
@@ -14,12 +26,18 @@ export declare const stringsVietnamese: {
14
26
  'Cart subtotal': {
15
27
  value: string;
16
28
  };
29
+ City: {
30
+ value: string;
31
+ };
17
32
  Contact: {
18
33
  value: string;
19
34
  };
20
35
  'Continue to shipping': {
21
36
  value: string;
22
37
  };
38
+ Country: {
39
+ value: string;
40
+ };
23
41
  Customer: {
24
42
  value: string;
25
43
  };
@@ -59,6 +77,9 @@ export declare const stringsVietnamese: {
59
77
  'Know about duties and taxes before you buy. Shop with confidence!': {
60
78
  value: string;
61
79
  };
80
+ Name: {
81
+ value: string;
82
+ };
62
83
  'No shipping method selected': {
63
84
  value: string;
64
85
  };
@@ -77,6 +98,9 @@ export declare const stringsVietnamese: {
77
98
  'Order total': {
78
99
  value: string;
79
100
  };
101
+ 'Orders to ${countryName} must be over ${threshold} to ship.': {
102
+ value: string;
103
+ };
80
104
  Pay: {
81
105
  value: string;
82
106
  };
@@ -98,6 +122,12 @@ export declare const stringsVietnamese: {
98
122
  'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
99
123
  value: string;
100
124
  };
125
+ 'Please resolve the following errors:': {
126
+ value: string;
127
+ };
128
+ 'Postal code': {
129
+ value: string;
130
+ };
101
131
  'Powered by': {
102
132
  value: string;
103
133
  };
@@ -140,6 +170,9 @@ export declare const stringsVietnamese: {
140
170
  Spend: {
141
171
  value: string;
142
172
  };
173
+ State: {
174
+ value: string;
175
+ };
143
176
  'Taxes will apply to all orders': {
144
177
  value: string;
145
178
  };
@@ -176,6 +209,9 @@ export declare const stringsVietnamese: {
176
209
  'duty free': {
177
210
  value: string;
178
211
  };
212
+ 'only supports Latin characters (A-Z, a-z)': {
213
+ value: string;
214
+ };
179
215
  'tax free': {
180
216
  value: string;
181
217
  };
@@ -7,5 +7,28 @@ declare const translationStore: TranslationStore;
7
7
  declare const translationStoreUpdateLanguage: (language: Locale_ElementsSupportedLocationCode_Enum | {
8
8
  _placeholder?: never;
9
9
  }) => void;
10
- declare const translate: (key: keyof typeof stringsBase) => string;
10
+ /**
11
+ * Extracts variables pattern "${pattern}" from a string
12
+ * @example
13
+ * type Variables = ExtractVariables<'${percentage} GST due on any order above ${threshold}.'>
14
+ *
15
+ * // Variables = 'percentage' | 'threshold'
16
+ */
17
+ type ExtractVariables<S extends string> = S extends `${infer _Start}\${${infer Var}}${infer End}` ? Var | ExtractVariables<End> : never;
18
+ /**
19
+ * Require second argument to be an object with keys that match the variables in the string. If no variables are present, second argument is optional.
20
+ * @example
21
+ * type Params = TranslateParams<'${percentage} GST due on any order above ${threshold}.'>
22
+ * // Params = ['${percentage} GST due on any order above ${threshold}.', variables: { percentage: string, threshold: string }]
23
+ */
24
+ type TranslateParams<T extends string> = ExtractVariables<T> extends never ? [T, variables?: never] : [T, variables: Record<ExtractVariables<T>, string>];
25
+ /**
26
+ * Translate a string with variables if variable pattern is present in the string
27
+ * @example
28
+ * // Require variables:
29
+ * translate('${percentage} GST due on any order above ${threshold}.', { percentage: '5%', threshold: '$100' })
30
+ * // No variables:
31
+ * translate('Above de minimis threshold for')
32
+ */
33
+ declare const translate: <T extends "${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy." | "${percentage} GST due on any order above ${threshold}." | "Above de minimis threshold for" | "Address" | "Address line 1" | "Address line 2" | "Back" | "Billing address" | "Cart subtotal" | "City" | "Contact" | "Continue to shipping" | "Country" | "Customer" | "Customer information" | "Delivery" | "Duties and taxes will be applied to items and shipping." | "Duties will apply to all orders" | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Expected delivery" | "Go to payment" | "Guaranteed" | "Keep shopping" | "Know about duties and taxes before you buy. Shop with confidence!" | "Name" | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at the door" | "Order is over the de minimis threshold for both duty and tax" | "Order total" | "Orders to ${countryName} must be over ${threshold} to ship." | "Pay" | "Payment" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Please resolve the following errors:" | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Restricted item" | "Restricted items found" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Shipping" | "Shipping address same as billing" | "Shipping information" | "Shipping method" | "Something went wrong." | "Spend" | "State" | "Taxes will apply to all orders" | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to" | "Welcome!" | "You're all set!" | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "business days" | "click to learn more" | "duty free" | "only supports Latin characters (A-Z, a-z)" | "tax free">(...[key, replacement]: TranslateParams<T>) => string;
11
34
  export { translate, translationStore, translationStoreUpdateLanguage };
@@ -1,5 +1,6 @@
1
1
  import type { EventEmitter } from '../../../stencil-public-runtime';
2
2
  import type { ContactOption, Stripe } from '@stripe/stripe-js';
3
+ import { containsNonLatinChars } from "../../utils/containsNonLatinChars";
3
4
  export declare class ZonosAddress {
4
5
  /**
5
6
  * The type of address element to render
@@ -18,7 +19,12 @@ export declare class ZonosAddress {
18
19
  */
19
20
  invalidCharacters: EventEmitter<boolean>;
20
21
  stripe: Stripe | null;
21
- hasInvalidCharacters: boolean;
22
+ /**
23
+ * Flag to know if we already sent a error event when the address contains invalid characters.
24
+ * We should just send the error event once.
25
+ */
26
+ reportedInvalidCharacters: boolean;
27
+ invalidCharacterList: ReturnType<typeof containsNonLatinChars> | null;
22
28
  /**
23
29
  * Check if the address is dirty or not to scroll into view. When the component is mounted, if the data is filled with address line 1, it's considered dirty
24
30
  */
@@ -1,9 +1,18 @@
1
1
  import type { CountryCode } from "../../../types/index";
2
2
  export type CountryLandedCost = {
3
+ /**
4
+ * @param allowLowValueOrders - Right now countries we have opted to block low value orders for are GB
5
+ * @default true for all countries except GB, with GB, use the value from `allowLowValueOrders`
6
+ */
7
+ allowLowValueOrders: boolean;
3
8
  calcAsVat: boolean;
4
- countryCode: string;
9
+ countryCode: CountryCode;
5
10
  deminimusCurrencyCode: string;
6
11
  dutyDeminimus: number;
12
+ /**
13
+ * Has tax id in the system for this country
14
+ */
15
+ hasTaxId: boolean;
7
16
  vatTaxDeminimus: number;
8
17
  vatTaxRate: number;
9
18
  };
@@ -4,7 +4,7 @@ export declare const getLocaleMessages: ({ countryCode, localeTo, storeId, }: {
4
4
  localeTo?: string | undefined;
5
5
  storeId: number;
6
6
  }) => Promise<{
7
- countryCodes: string[];
7
+ countryCodes: string[] | null;
8
8
  countryCodesPageMessageLinks: {
9
9
  id: number;
10
10
  message: {
@@ -0,0 +1,8 @@
1
+ type Connection = {
2
+ downlink?: number;
3
+ effectiveType?: 'slow-2g' | '2g' | '3g' | '4g';
4
+ rtt?: number;
5
+ saveData?: boolean;
6
+ };
7
+ export declare const getNavigatorConnection: () => Connection | null | undefined;
8
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { LogLoadScriptRequestBody } from "../../../types/LogLoadScriptRequestBody";
2
+ type Params = Omit<LogLoadScriptRequestBody, 'href'>;
3
+ export declare const sendLoadScriptLog: (params: Params) => Promise<void>;
4
+ export {};
@@ -36,6 +36,10 @@ export interface Zonos {
36
36
  tempCartData: TempCart | null;
37
37
  version: string;
38
38
  zonosApiKey: string;
39
+ /**
40
+ * Flag to send tracking event to api for conversion testing, since we don't send tracking event to api when in debug/development mode
41
+ */
42
+ zonosConversionTest?: boolean;
39
43
  zonosQaUrl: string | null;
40
44
  displayCurrency: () => void;
41
45
  getCurrentTimestamp: () => number;
@@ -52,6 +56,7 @@ export declare abstract class Zonos {
52
56
  static storeId: number;
53
57
  static doneInit: boolean;
54
58
  static debug: boolean;
59
+ static zonosConversionTest: boolean;
55
60
  static isBigCommerce: boolean;
56
61
  static internationalHideSelector: string;
57
62
  static zonosQaUrl: string | null;
@@ -0,0 +1,12 @@
1
+ type LoadEventName = 'vercel' | 'jsdelivr';
2
+ export type LogLoadScriptRequestBody = {
3
+ cache: 'hit' | 'miss';
4
+ cdnLoadTime?: number;
5
+ eventName: LoadEventName;
6
+ href: string;
7
+ loadTime: number;
8
+ metadata: Record<string, unknown>;
9
+ scriptLoadUrl: string;
10
+ storeId: number;
11
+ };
12
+ export {};
@@ -28,7 +28,7 @@ export type CheckoutConfig = {
28
28
  orderConfirmation: {
29
29
  active: NotificationActiveStatus;
30
30
  sendCopiesTo: Array<string>;
31
- };
31
+ } | null;
32
32
  orderShipped: {
33
33
  active: NotificationActiveStatus;
34
34
  sendCopiesTo: Array<string>;