@zonos/elements 1.3.255 → 1.3.257
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.
- package/dist/cjs/{cart-4ef52500.js → cart-cd0a054b.js} +4 -4
- package/dist/cjs/{debounce-0c75ba33.js → debounce-3e17b4e9.js} +1 -1
- package/dist/cjs/{getBorderRadius-27a74844.js → getBorderRadius-db55a464.js} +1 -1
- package/dist/cjs/{getContrastColor-cc087c53.js → getContrastColor-8ed1cb48.js} +2 -2
- package/dist/cjs/{hasInclusivePrice-4419d03e.js → hasInclusivePrice-3650109c.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-3494b21e.js → invoice-1cea739b.js} +3 -3
- package/dist/cjs/{isCollectMobileTablet-92955ce6.js → isCollectMobileTablet-65c71740.js} +3 -3
- package/dist/cjs/{isContrastColor-d1936a5c.js → isContrastColor-6a17f408.js} +1 -1
- package/dist/cjs/{isDarkColor-a68abf7a.js → isDarkColor-bfe6d1eb.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-75f4ec05.js → localization-adaab93f.js} +295 -20
- package/dist/cjs/{paypal-cc3a730b.js → paypal-326d7bc5.js} +5 -5
- package/dist/cjs/{placeTestOrder-13901275.js → placeTestOrder-53f2fe97.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-0003992c.js → renderCheckoutCurrency-cf2e3b93.js} +2 -2
- package/dist/cjs/{submitGtag-cb4fb332.js → submitGtag-9ac5a42e.js} +1 -1
- package/dist/cjs/{throttle-ff483793.js → throttle-dac93461.js} +2 -2
- package/dist/cjs/{updateCheckoutSessionAttributes-8be63b63.js → updateCheckoutSessionAttributes-a3776bb0.js} +1 -1
- package/dist/cjs/zonos-address-display_8.cjs.entry.js +7 -7
- package/dist/cjs/zonos-address_4.cjs.entry.js +7 -7
- package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_5.cjs.entry.js +8 -8
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +14 -14
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-checkout.cjs.entry.js +364 -85
- package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -5
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +11 -11
- package/dist/cjs/zonos-collect.cjs.entry.js +9 -9
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -3
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
- package/dist/cjs/zonos-hello.cjs.entry.js +38 -15
- package/dist/cjs/zonos-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +7 -7
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +11 -11
- package/dist/cjs/zonos-invoice.cjs.entry.js +9 -9
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
- package/dist/cjs/zonos-store-credit.cjs.entry.js +6 -6
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-f5a61112.js → zonosStore-1c517e55.js} +0 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +60 -2
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +35 -12
- package/dist/collection/components/store/hello/localization.js +54 -19
- package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
- package/dist/collection/components/store/translationStore/strings.base.js +12 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
- package/dist/collection/components/store/translationStore/strings.french.js +12 -0
- package/dist/collection/components/store/translationStore/strings.german.js +12 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
- package/dist/collection/components/store/zonosStore.js +0 -1
- package/dist/collection/components/utils/checkout/bigcommerceStorefrontApi.js +52 -0
- package/dist/collection/components/utils/checkout/buildBigcommerceRedirectUrl.js +22 -0
- package/dist/collection/components/utils/checkout/checkBigCommerceBypassCustomerGroup.js +122 -0
- package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +5 -2
- package/dist/collection/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.js +120 -86
- package/dist/collection/types/generated/graphql.internal.types.js +446 -0
- package/dist/esm/{cart-f4e43d1a.js → cart-4cd47a1b.js} +4 -4
- package/dist/esm/{debounce-efc0e473.js → debounce-8faafc9f.js} +1 -1
- package/dist/esm/{getBorderRadius-c21a42e5.js → getBorderRadius-66de1b16.js} +1 -1
- package/dist/esm/{getContrastColor-98f0d1d5.js → getContrastColor-e14f95a7.js} +2 -2
- package/dist/esm/{hasInclusivePrice-0439b7f4.js → hasInclusivePrice-7a3dc4c3.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-3d8f3fa8.js → invoice-03ff7bbb.js} +3 -3
- package/dist/esm/{isCollectMobileTablet-0402aa32.js → isCollectMobileTablet-9eb77c9a.js} +3 -3
- package/dist/esm/{isContrastColor-c17e83c9.js → isContrastColor-f9e65e70.js} +1 -1
- package/dist/esm/{isDarkColor-3537021b.js → isDarkColor-8092a9fb.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-026da80b.js → localization-79e08480.js} +295 -20
- package/dist/esm/{paypal-07bd6b7c.js → paypal-67c86683.js} +5 -5
- package/dist/esm/{placeTestOrder-39de11f4.js → placeTestOrder-e81fff15.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-743f7c77.js → renderCheckoutCurrency-1fc00db4.js} +2 -2
- package/dist/esm/{submitGtag-13de9f1f.js → submitGtag-543058f9.js} +1 -1
- package/dist/esm/{throttle-0504ba2c.js → throttle-5a66b4fd.js} +2 -2
- package/dist/esm/{updateCheckoutSessionAttributes-b9f7e982.js → updateCheckoutSessionAttributes-8f3f932e.js} +1 -1
- package/dist/esm/zonos-address-display_8.entry.js +7 -7
- package/dist/esm/zonos-address_4.entry.js +7 -7
- package/dist/esm/zonos-badge.entry.js +1 -1
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card_5.entry.js +8 -8
- package/dist/esm/zonos-cart-items_12.entry.js +14 -14
- package/dist/esm/zonos-checkbox_2.entry.js +3 -3
- package/dist/esm/zonos-checkout.entry.js +365 -86
- package/dist/esm/zonos-collapse.entry.js +1 -1
- package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -5
- package/dist/esm/zonos-collect-finish_6.entry.js +11 -11
- package/dist/esm/zonos-collect.entry.js +9 -9
- package/dist/esm/zonos-controller.entry.js +6 -6
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +3 -3
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +3 -3
- package/dist/esm/zonos-hello.entry.js +38 -15
- package/dist/esm/zonos-input.entry.js +2 -2
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +7 -7
- package/dist/esm/zonos-invoice-finish_5.entry.js +11 -11
- package/dist/esm/zonos-invoice.entry.js +9 -9
- package/dist/esm/zonos-language-select_2.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +1 -1
- package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
- package/dist/esm/zonos-store-credit.entry.js +6 -6
- package/dist/esm/zonos-stripe-input.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +1 -1
- package/dist/esm/{zonosStore-5242a58d.js → zonosStore-f1d45eac.js} +0 -1
- package/dist/esm-es5/{cart-f4e43d1a.js → cart-4cd47a1b.js} +1 -1
- package/dist/esm-es5/{debounce-efc0e473.js → debounce-8faafc9f.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-c21a42e5.js → getBorderRadius-66de1b16.js} +1 -1
- package/dist/esm-es5/{getContrastColor-98f0d1d5.js → getContrastColor-e14f95a7.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-0439b7f4.js → hasInclusivePrice-7a3dc4c3.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-3d8f3fa8.js → invoice-03ff7bbb.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-0402aa32.js → isCollectMobileTablet-9eb77c9a.js} +1 -1
- package/dist/esm-es5/{isContrastColor-c17e83c9.js → isContrastColor-f9e65e70.js} +1 -1
- package/dist/esm-es5/{isDarkColor-3537021b.js → isDarkColor-8092a9fb.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-79e08480.js +1 -0
- package/dist/esm-es5/{paypal-07bd6b7c.js → paypal-67c86683.js} +2 -2
- package/dist/esm-es5/{placeTestOrder-39de11f4.js → placeTestOrder-e81fff15.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-743f7c77.js → renderCheckoutCurrency-1fc00db4.js} +1 -1
- package/dist/esm-es5/{submitGtag-13de9f1f.js → submitGtag-543058f9.js} +1 -1
- package/dist/esm-es5/{throttle-0504ba2c.js → throttle-5a66b4fd.js} +1 -1
- package/dist/esm-es5/{updateCheckoutSessionAttributes-b9f7e982.js → updateCheckoutSessionAttributes-8f3f932e.js} +1 -1
- package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-store-credit.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-5242a58d.js → zonosStore-f1d45eac.js} +1 -1
- package/dist/scripts/index.d.ts +107 -8
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +13 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/bigcommerceStorefrontApi.d.ts +36 -0
- package/dist/types/components/utils/checkout/buildBigcommerceRedirectUrl.d.ts +11 -0
- package/dist/types/components/utils/checkout/checkBigCommerceBypassCustomerGroup.d.ts +30 -0
- package/dist/types/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.d.ts +16 -1
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +18 -6
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +532 -11
- package/dist/types/types/generated/graphql.internal.types.ts +600 -11
- package/dist/types/types/hello/HelloConfig.d.ts +22 -3
- package/dist/types/types/utils/ZonosSettings.d.ts +7 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-568c5700.system.entry.js → p-0740f8a4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-09307a03.js +1 -0
- package/dist/zonos-elements/{p-1bdac1d3.entry.js → p-0ca6ee9b.entry.js} +1 -1
- package/dist/zonos-elements/p-0e83d193.js +1 -0
- package/dist/zonos-elements/{p-9b12f023.system.entry.js → p-0f4822cc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8d5f928c.system.entry.js → p-1368dce7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ac30b7a8.system.js → p-15ef7644.system.js} +1 -1
- package/dist/zonos-elements/{p-ab25379f.system.js → p-17a8a514.system.js} +1 -1
- package/dist/zonos-elements/{p-0649737d.entry.js → p-21519ebe.entry.js} +1 -1
- package/dist/zonos-elements/{p-16a80e3c.system.js → p-22bb7836.system.js} +1 -1
- package/dist/zonos-elements/p-271eebd3.system.js +1 -0
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-d397560e.system.entry.js → p-2c1c6d60.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-908f13ae.js → p-2f924331.js} +1 -1
- package/dist/zonos-elements/{p-4aefd668.entry.js → p-2fa41e93.entry.js} +1 -1
- package/dist/zonos-elements/{p-9e98a256.system.entry.js → p-3092ec40.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-dbb3db89.system.entry.js → p-313b87f3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c9d4eb42.entry.js → p-3576d900.entry.js} +1 -1
- package/dist/zonos-elements/{p-a6cc56ba.entry.js → p-3675766a.entry.js} +1 -1
- package/dist/zonos-elements/p-380143db.entry.js +1 -0
- package/dist/zonos-elements/{p-4f7d64f6.js → p-387f6a4d.js} +1 -1
- package/dist/zonos-elements/{p-d168be79.system.entry.js → p-3fc43187.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a1c476d6.system.entry.js → p-3ff736f7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d938fb86.entry.js → p-429c1d0c.entry.js} +1 -1
- package/dist/zonos-elements/{p-8c6624b6.system.js → p-43a6e469.system.js} +1 -1
- package/dist/zonos-elements/{p-5678c5b5.system.entry.js → p-4a84387a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-af83f0c2.js → p-4e2262e8.js} +1 -1
- package/dist/zonos-elements/p-53fe581b.system.js +1 -0
- package/dist/zonos-elements/{p-3e03b2e8.entry.js → p-5818f4a7.entry.js} +1 -1
- package/dist/zonos-elements/{p-f830f800.js → p-5beab541.js} +1 -1
- package/dist/zonos-elements/{p-d18a2b2c.system.js → p-61be7d98.system.js} +1 -1
- package/dist/zonos-elements/{p-70c8a47d.system.entry.js → p-62dbc5f8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6ce8374e.entry.js → p-6b83ac7f.entry.js} +1 -1
- package/dist/zonos-elements/p-6bcbe651.js +1 -0
- package/dist/zonos-elements/{p-835c0bd4.js → p-7559c494.js} +1 -1
- package/dist/zonos-elements/{p-8f1ab25c.system.entry.js → p-770d414a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7427dd1e.entry.js → p-7a379538.entry.js} +1 -1
- package/dist/zonos-elements/{p-fbe22363.entry.js → p-7aeb496e.entry.js} +1 -1
- package/dist/zonos-elements/p-7caa75bb.js +1 -0
- package/dist/zonos-elements/p-7cbbf483.system.js +1 -0
- package/dist/zonos-elements/p-7d9bbdc8.js +1 -0
- package/dist/zonos-elements/{p-e12f7a97.entry.js → p-80ba5f70.entry.js} +1 -1
- package/dist/zonos-elements/{p-2b10f633.system.js → p-8adc0a13.system.js} +1 -1
- package/dist/zonos-elements/{p-b45538a7.system.entry.js → p-8b35e475.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8bce79f4.system.js +1 -0
- package/dist/zonos-elements/{p-c398711f.js → p-8ed0fad5.js} +2 -2
- package/dist/zonos-elements/{p-18d411c3.system.entry.js → p-9161f10d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f888db89.entry.js → p-91eeccaa.entry.js} +1 -1
- package/dist/zonos-elements/p-944bf0e7.js +1 -0
- package/dist/zonos-elements/{p-3730d555.system.entry.js → p-9d435f12.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-db0b35a2.system.entry.js → p-9f3aab4e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-231edcca.entry.js → p-a60544cc.entry.js} +1 -1
- package/dist/zonos-elements/{p-33fc0c8f.entry.js → p-a7b0345b.entry.js} +1 -1
- package/dist/zonos-elements/{p-aabb921f.system.js → p-a90c977a.system.js} +1 -1
- package/dist/zonos-elements/{p-a1835bae.system.entry.js → p-aa3e3438.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ac7b93c9.js +1 -0
- package/dist/zonos-elements/{p-5359ba71.entry.js → p-b3824361.entry.js} +1 -1
- package/dist/zonos-elements/{p-9d9792b9.system.entry.js → p-b414b484.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-50aac43c.system.js → p-b53856bf.system.js} +1 -1
- package/dist/zonos-elements/{p-2aa44601.entry.js → p-bb6e7e9e.entry.js} +1 -1
- package/dist/zonos-elements/{p-939ba2a5.entry.js → p-bb785f33.entry.js} +1 -1
- package/dist/zonos-elements/{p-5f628e57.entry.js → p-bcbbe867.entry.js} +1 -1
- package/dist/zonos-elements/p-c2139758.entry.js +1 -0
- package/dist/zonos-elements/{p-3814aac3.system.entry.js → p-c23e2501.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2baa21b1.entry.js → p-c585d169.entry.js} +1 -1
- package/dist/zonos-elements/{p-ed61dedd.system.entry.js → p-c7ecef98.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ee217693.entry.js → p-c908a7a3.entry.js} +1 -1
- package/dist/zonos-elements/p-cd563d65.system.js +1 -0
- package/dist/zonos-elements/{p-ddcbea81.entry.js → p-cdbb50cf.entry.js} +1 -1
- package/dist/zonos-elements/{p-2affd4e6.entry.js → p-ce2fd652.entry.js} +1 -1
- package/dist/zonos-elements/{p-4e4fa1fb.system.entry.js → p-d004565d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5e3e5e3e.system.js → p-d0690cdc.system.js} +1 -1
- package/dist/zonos-elements/{p-fe6cc354.entry.js → p-d30e8c3a.entry.js} +1 -1
- package/dist/zonos-elements/p-da7e1143.system.entry.js +1 -0
- package/dist/zonos-elements/p-ddb27b4a.entry.js +1 -0
- package/dist/zonos-elements/{p-234f0339.system.entry.js → p-dfb4360d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-66758e30.system.entry.js → p-e173fbd1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3fbd9cc0.system.js → p-e25e0b4b.system.js} +1 -1
- package/dist/zonos-elements/{p-cc364b26.system.entry.js → p-e3f9779a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0d18d94b.entry.js → p-e55bc187.entry.js} +1 -1
- package/dist/zonos-elements/{p-0aa1c8c2.system.js → p-e56f5954.system.js} +1 -1
- package/dist/zonos-elements/{p-06b4aa32.system.js → p-e5f5b086.system.js} +1 -1
- package/dist/zonos-elements/{p-dafafa07.js → p-e62342c3.js} +1 -1
- package/dist/zonos-elements/p-e6726a50.system.js +1 -0
- package/dist/zonos-elements/{p-274a5d11.system.entry.js → p-e6feafc1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b004146f.entry.js → p-e749fb81.entry.js} +1 -1
- package/dist/zonos-elements/{p-27e41b44.system.entry.js → p-e80832cb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-12f480c9.system.entry.js → p-e9f36d6b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-058f6124.js → p-ed9385f4.js} +1 -1
- package/dist/zonos-elements/p-f68ce554.js +1 -0
- package/dist/zonos-elements/{p-67897a0d.js → p-f6922df5.js} +1 -1
- package/dist/zonos-elements/{p-f0938b51.system.entry.js → p-f7ddd288.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-38881641.system.entry.js → p-fbc274a8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d2bba4dc.entry.js → p-fed19033.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/localization-026da80b.js +0 -1
- package/dist/zonos-elements/p-0d4af7e9.system.entry.js +0 -1
- package/dist/zonos-elements/p-1ed9ef0b.js +0 -1
- package/dist/zonos-elements/p-31d1b874.system.js +0 -1
- package/dist/zonos-elements/p-34d10122.js +0 -1
- package/dist/zonos-elements/p-3ac97c01.js +0 -1
- package/dist/zonos-elements/p-53db5f85.system.js +0 -1
- package/dist/zonos-elements/p-7501c637.system.js +0 -1
- package/dist/zonos-elements/p-768430fe.js +0 -1
- package/dist/zonos-elements/p-7d7ffb42.js +0 -1
- package/dist/zonos-elements/p-959918fe.system.js +0 -1
- package/dist/zonos-elements/p-9d44fef6.system.js +0 -1
- package/dist/zonos-elements/p-b20c7f8c.entry.js +0 -1
- package/dist/zonos-elements/p-b6c78f82.entry.js +0 -1
- package/dist/zonos-elements/p-b84be447.js +0 -1
- package/dist/zonos-elements/p-db993fdb.entry.js +0 -1
- package/dist/zonos-elements/p-def2d465.js +0 -1
- package/dist/zonos-elements/p-e219d011.js +0 -1
- package/dist/zonos-elements/p-f9705736.system.js +0 -1
|
@@ -128,6 +128,9 @@ export declare const stringsNorwegian: {
|
|
|
128
128
|
Contact: {
|
|
129
129
|
value: string;
|
|
130
130
|
};
|
|
131
|
+
'Continue to international checkout': {
|
|
132
|
+
value: string;
|
|
133
|
+
};
|
|
131
134
|
'Continue to shipping': {
|
|
132
135
|
value: string;
|
|
133
136
|
};
|
|
@@ -284,6 +287,9 @@ export declare const stringsNorwegian: {
|
|
|
284
287
|
Indeks: {
|
|
285
288
|
value: string;
|
|
286
289
|
};
|
|
290
|
+
'International shipping address detected': {
|
|
291
|
+
value: string;
|
|
292
|
+
};
|
|
287
293
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
288
294
|
value: string;
|
|
289
295
|
};
|
|
@@ -587,6 +593,9 @@ export declare const stringsNorwegian: {
|
|
|
587
593
|
'State/Province/Region/Prefecture': {
|
|
588
594
|
value: string;
|
|
589
595
|
};
|
|
596
|
+
'Stay on this page': {
|
|
597
|
+
value: string;
|
|
598
|
+
};
|
|
590
599
|
'Store credit': {
|
|
591
600
|
value: string;
|
|
592
601
|
};
|
|
@@ -773,6 +782,9 @@ export declare const stringsNorwegian: {
|
|
|
773
782
|
'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.': {
|
|
774
783
|
value: string;
|
|
775
784
|
};
|
|
785
|
+
'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
|
|
786
|
+
value: string;
|
|
787
|
+
};
|
|
776
788
|
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
777
789
|
value: string;
|
|
778
790
|
};
|
|
@@ -128,6 +128,9 @@ export declare const stringsPolish: {
|
|
|
128
128
|
Contact: {
|
|
129
129
|
value: string;
|
|
130
130
|
};
|
|
131
|
+
'Continue to international checkout': {
|
|
132
|
+
value: string;
|
|
133
|
+
};
|
|
131
134
|
'Continue to shipping': {
|
|
132
135
|
value: string;
|
|
133
136
|
};
|
|
@@ -284,6 +287,9 @@ export declare const stringsPolish: {
|
|
|
284
287
|
Indeks: {
|
|
285
288
|
value: string;
|
|
286
289
|
};
|
|
290
|
+
'International shipping address detected': {
|
|
291
|
+
value: string;
|
|
292
|
+
};
|
|
287
293
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
288
294
|
value: string;
|
|
289
295
|
};
|
|
@@ -587,6 +593,9 @@ export declare const stringsPolish: {
|
|
|
587
593
|
'State/Province/Region/Prefecture': {
|
|
588
594
|
value: string;
|
|
589
595
|
};
|
|
596
|
+
'Stay on this page': {
|
|
597
|
+
value: string;
|
|
598
|
+
};
|
|
590
599
|
'Store credit': {
|
|
591
600
|
value: string;
|
|
592
601
|
};
|
|
@@ -773,6 +782,9 @@ export declare const stringsPolish: {
|
|
|
773
782
|
'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.': {
|
|
774
783
|
value: string;
|
|
775
784
|
};
|
|
785
|
+
'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
|
|
786
|
+
value: string;
|
|
787
|
+
};
|
|
776
788
|
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
777
789
|
value: string;
|
|
778
790
|
};
|
|
@@ -128,6 +128,9 @@ export declare const stringsPortuguese: {
|
|
|
128
128
|
Contact: {
|
|
129
129
|
value: string;
|
|
130
130
|
};
|
|
131
|
+
'Continue to international checkout': {
|
|
132
|
+
value: string;
|
|
133
|
+
};
|
|
131
134
|
'Continue to shipping': {
|
|
132
135
|
value: string;
|
|
133
136
|
};
|
|
@@ -284,6 +287,9 @@ export declare const stringsPortuguese: {
|
|
|
284
287
|
Indeks: {
|
|
285
288
|
value: string;
|
|
286
289
|
};
|
|
290
|
+
'International shipping address detected': {
|
|
291
|
+
value: string;
|
|
292
|
+
};
|
|
287
293
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
288
294
|
value: string;
|
|
289
295
|
};
|
|
@@ -587,6 +593,9 @@ export declare const stringsPortuguese: {
|
|
|
587
593
|
'State/Province/Region/Prefecture': {
|
|
588
594
|
value: string;
|
|
589
595
|
};
|
|
596
|
+
'Stay on this page': {
|
|
597
|
+
value: string;
|
|
598
|
+
};
|
|
590
599
|
'Store credit': {
|
|
591
600
|
value: string;
|
|
592
601
|
};
|
|
@@ -773,6 +782,9 @@ export declare const stringsPortuguese: {
|
|
|
773
782
|
'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.': {
|
|
774
783
|
value: string;
|
|
775
784
|
};
|
|
785
|
+
'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
|
|
786
|
+
value: string;
|
|
787
|
+
};
|
|
776
788
|
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
777
789
|
value: string;
|
|
778
790
|
};
|
|
@@ -128,6 +128,9 @@ export declare const stringsRussian: {
|
|
|
128
128
|
Contact: {
|
|
129
129
|
value: string;
|
|
130
130
|
};
|
|
131
|
+
'Continue to international checkout': {
|
|
132
|
+
value: string;
|
|
133
|
+
};
|
|
131
134
|
'Continue to shipping': {
|
|
132
135
|
value: string;
|
|
133
136
|
};
|
|
@@ -284,6 +287,9 @@ export declare const stringsRussian: {
|
|
|
284
287
|
Indeks: {
|
|
285
288
|
value: string;
|
|
286
289
|
};
|
|
290
|
+
'International shipping address detected': {
|
|
291
|
+
value: string;
|
|
292
|
+
};
|
|
287
293
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
288
294
|
value: string;
|
|
289
295
|
};
|
|
@@ -587,6 +593,9 @@ export declare const stringsRussian: {
|
|
|
587
593
|
'State/Province/Region/Prefecture': {
|
|
588
594
|
value: string;
|
|
589
595
|
};
|
|
596
|
+
'Stay on this page': {
|
|
597
|
+
value: string;
|
|
598
|
+
};
|
|
590
599
|
'Store credit': {
|
|
591
600
|
value: string;
|
|
592
601
|
};
|
|
@@ -773,6 +782,9 @@ export declare const stringsRussian: {
|
|
|
773
782
|
'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.': {
|
|
774
783
|
value: string;
|
|
775
784
|
};
|
|
785
|
+
'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
|
|
786
|
+
value: string;
|
|
787
|
+
};
|
|
776
788
|
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
777
789
|
value: string;
|
|
778
790
|
};
|
|
@@ -128,6 +128,9 @@ export declare const stringsSpanish: {
|
|
|
128
128
|
Contact: {
|
|
129
129
|
value: string;
|
|
130
130
|
};
|
|
131
|
+
'Continue to international checkout': {
|
|
132
|
+
value: string;
|
|
133
|
+
};
|
|
131
134
|
'Continue to shipping': {
|
|
132
135
|
value: string;
|
|
133
136
|
};
|
|
@@ -284,6 +287,9 @@ export declare const stringsSpanish: {
|
|
|
284
287
|
Indeks: {
|
|
285
288
|
value: string;
|
|
286
289
|
};
|
|
290
|
+
'International shipping address detected': {
|
|
291
|
+
value: string;
|
|
292
|
+
};
|
|
287
293
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
288
294
|
value: string;
|
|
289
295
|
};
|
|
@@ -587,6 +593,9 @@ export declare const stringsSpanish: {
|
|
|
587
593
|
'State/Province/Region/Prefecture': {
|
|
588
594
|
value: string;
|
|
589
595
|
};
|
|
596
|
+
'Stay on this page': {
|
|
597
|
+
value: string;
|
|
598
|
+
};
|
|
590
599
|
'Store credit': {
|
|
591
600
|
value: string;
|
|
592
601
|
};
|
|
@@ -773,6 +782,9 @@ export declare const stringsSpanish: {
|
|
|
773
782
|
'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.': {
|
|
774
783
|
value: string;
|
|
775
784
|
};
|
|
785
|
+
'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
|
|
786
|
+
value: string;
|
|
787
|
+
};
|
|
776
788
|
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
777
789
|
value: string;
|
|
778
790
|
};
|
|
@@ -128,6 +128,9 @@ export declare const stringsSwedish: {
|
|
|
128
128
|
Contact: {
|
|
129
129
|
value: string;
|
|
130
130
|
};
|
|
131
|
+
'Continue to international checkout': {
|
|
132
|
+
value: string;
|
|
133
|
+
};
|
|
131
134
|
'Continue to shipping': {
|
|
132
135
|
value: string;
|
|
133
136
|
};
|
|
@@ -284,6 +287,9 @@ export declare const stringsSwedish: {
|
|
|
284
287
|
Indeks: {
|
|
285
288
|
value: string;
|
|
286
289
|
};
|
|
290
|
+
'International shipping address detected': {
|
|
291
|
+
value: string;
|
|
292
|
+
};
|
|
287
293
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
288
294
|
value: string;
|
|
289
295
|
};
|
|
@@ -587,6 +593,9 @@ export declare const stringsSwedish: {
|
|
|
587
593
|
'State/Province/Region/Prefecture': {
|
|
588
594
|
value: string;
|
|
589
595
|
};
|
|
596
|
+
'Stay on this page': {
|
|
597
|
+
value: string;
|
|
598
|
+
};
|
|
590
599
|
'Store credit': {
|
|
591
600
|
value: string;
|
|
592
601
|
};
|
|
@@ -773,6 +782,9 @@ export declare const stringsSwedish: {
|
|
|
773
782
|
'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.': {
|
|
774
783
|
value: string;
|
|
775
784
|
};
|
|
785
|
+
'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
|
|
786
|
+
value: string;
|
|
787
|
+
};
|
|
776
788
|
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
777
789
|
value: string;
|
|
778
790
|
};
|
|
@@ -128,6 +128,9 @@ export declare const stringsTurkish: {
|
|
|
128
128
|
Contact: {
|
|
129
129
|
value: string;
|
|
130
130
|
};
|
|
131
|
+
'Continue to international checkout': {
|
|
132
|
+
value: string;
|
|
133
|
+
};
|
|
131
134
|
'Continue to shipping': {
|
|
132
135
|
value: string;
|
|
133
136
|
};
|
|
@@ -284,6 +287,9 @@ export declare const stringsTurkish: {
|
|
|
284
287
|
Indeks: {
|
|
285
288
|
value: string;
|
|
286
289
|
};
|
|
290
|
+
'International shipping address detected': {
|
|
291
|
+
value: string;
|
|
292
|
+
};
|
|
287
293
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
288
294
|
value: string;
|
|
289
295
|
};
|
|
@@ -587,6 +593,9 @@ export declare const stringsTurkish: {
|
|
|
587
593
|
'State/Province/Region/Prefecture': {
|
|
588
594
|
value: string;
|
|
589
595
|
};
|
|
596
|
+
'Stay on this page': {
|
|
597
|
+
value: string;
|
|
598
|
+
};
|
|
590
599
|
'Store credit': {
|
|
591
600
|
value: string;
|
|
592
601
|
};
|
|
@@ -773,6 +782,9 @@ export declare const stringsTurkish: {
|
|
|
773
782
|
'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.': {
|
|
774
783
|
value: string;
|
|
775
784
|
};
|
|
785
|
+
'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
|
|
786
|
+
value: string;
|
|
787
|
+
};
|
|
776
788
|
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
777
789
|
value: string;
|
|
778
790
|
};
|
|
@@ -128,6 +128,9 @@ export declare const stringsVietnamese: {
|
|
|
128
128
|
Contact: {
|
|
129
129
|
value: string;
|
|
130
130
|
};
|
|
131
|
+
'Continue to international checkout': {
|
|
132
|
+
value: string;
|
|
133
|
+
};
|
|
131
134
|
'Continue to shipping': {
|
|
132
135
|
value: string;
|
|
133
136
|
};
|
|
@@ -284,6 +287,9 @@ export declare const stringsVietnamese: {
|
|
|
284
287
|
Indeks: {
|
|
285
288
|
value: string;
|
|
286
289
|
};
|
|
290
|
+
'International shipping address detected': {
|
|
291
|
+
value: string;
|
|
292
|
+
};
|
|
287
293
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
288
294
|
value: string;
|
|
289
295
|
};
|
|
@@ -587,6 +593,9 @@ export declare const stringsVietnamese: {
|
|
|
587
593
|
'State/Province/Region/Prefecture': {
|
|
588
594
|
value: string;
|
|
589
595
|
};
|
|
596
|
+
'Stay on this page': {
|
|
597
|
+
value: string;
|
|
598
|
+
};
|
|
590
599
|
'Store credit': {
|
|
591
600
|
value: string;
|
|
592
601
|
};
|
|
@@ -773,6 +782,9 @@ export declare const stringsVietnamese: {
|
|
|
773
782
|
'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.': {
|
|
774
783
|
value: string;
|
|
775
784
|
};
|
|
785
|
+
'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
|
|
786
|
+
value: string;
|
|
787
|
+
};
|
|
776
788
|
'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
|
|
777
789
|
value: string;
|
|
778
790
|
};
|
|
@@ -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>;
|
|
8
8
|
countryCodesPageMessageLinks: Array<{
|
|
9
9
|
id: number;
|
|
10
10
|
message: {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BigCommerce Storefront API checkout response shape — partial, only the
|
|
3
|
+
* fields we consume.
|
|
4
|
+
*/
|
|
5
|
+
export type BigCommerceCheckoutResponse = {
|
|
6
|
+
consignments?: {
|
|
7
|
+
shippingAddress?: {
|
|
8
|
+
address1?: string;
|
|
9
|
+
address2?: string;
|
|
10
|
+
city?: string;
|
|
11
|
+
countryCode?: string;
|
|
12
|
+
firstName?: string;
|
|
13
|
+
lastName?: string;
|
|
14
|
+
phone?: string;
|
|
15
|
+
postalCode?: string;
|
|
16
|
+
stateOrProvince?: string;
|
|
17
|
+
};
|
|
18
|
+
}[];
|
|
19
|
+
customer?: {
|
|
20
|
+
customerGroup?: {
|
|
21
|
+
id: number;
|
|
22
|
+
};
|
|
23
|
+
id?: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Fetch the checkout/cart ID from the BigCommerce Storefront Cart API.
|
|
28
|
+
* The `/checkout` page URL does not include the checkout ID, so we
|
|
29
|
+
* retrieve it from `/api/storefront/cart` which returns the active cart(s).
|
|
30
|
+
*/
|
|
31
|
+
export declare const fetchCheckoutId: () => Promise<string | null>;
|
|
32
|
+
/**
|
|
33
|
+
* Fetch checkout data from the BigCommerce Storefront API.
|
|
34
|
+
* This API is cookie-authenticated (same-origin), so no token is needed.
|
|
35
|
+
*/
|
|
36
|
+
export declare const fetchBigCommerceCheckout: (checkoutId: string) => Promise<BigCommerceCheckoutResponse | null>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build an absolute redirect URL used by the BigCommerce checkout flows to
|
|
3
|
+
* navigate between the BC native `/checkout` page and the Zonos international
|
|
4
|
+
* checkout at `/`.
|
|
5
|
+
*
|
|
6
|
+
* Carries over the `zonosQaUrl` query param from the current URL (when
|
|
7
|
+
* present) so the preview Zonos elements build keeps loading after the
|
|
8
|
+
* redirect, and sets `zonosTestMode=1` when test mode is active so the
|
|
9
|
+
* destination page continues to use the test credentials.
|
|
10
|
+
*/
|
|
11
|
+
export declare const buildBigcommerceRedirectUrl: (pathname: string) => string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type BypassResult = {
|
|
2
|
+
customerGroupId: number | null;
|
|
3
|
+
shouldBypass: boolean;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Start fetching the BigCommerce customer group on page load.
|
|
7
|
+
* Call this once during initialization (e.g. in `zonos-checkout.init()`).
|
|
8
|
+
* The fetch runs in the background; `checkBigCommerceBypassCustomerGroup`
|
|
9
|
+
* will await the result when needed.
|
|
10
|
+
*/
|
|
11
|
+
export declare const initBigCommerceBypassCheck: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* Check if the current BigCommerce customer belongs to a customer group
|
|
14
|
+
* that should bypass Zonos Checkout.
|
|
15
|
+
*
|
|
16
|
+
* If `initBigCommerceBypassCheck` was called on page load and the resulting
|
|
17
|
+
* outcome was conclusive, this returns the already-resolved (or in-flight)
|
|
18
|
+
* result without making additional API calls. If the previous outcome was
|
|
19
|
+
* inconclusive (no cart, settings not loaded), the cache was invalidated
|
|
20
|
+
* automatically and this triggers a fresh fetch.
|
|
21
|
+
*
|
|
22
|
+
* @param options.forceRefresh - When true, bypasses any cached result and
|
|
23
|
+
* always fetches fresh BigCommerce checkout data. Use this on the
|
|
24
|
+
* BigCommerce domestic checkout page when the shipping country changes,
|
|
25
|
+
* to ensure the customer group reflects the current checkout state.
|
|
26
|
+
*/
|
|
27
|
+
export declare const checkBigCommerceBypassCustomerGroup: (options?: {
|
|
28
|
+
forceRefresh?: boolean;
|
|
29
|
+
}) => Promise<BypassResult>;
|
|
30
|
+
export {};
|
package/dist/types/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.d.ts
CHANGED
|
@@ -4,6 +4,21 @@ type Params = {
|
|
|
4
4
|
* Action trigger when country select is selected with international shipping country
|
|
5
5
|
*/
|
|
6
6
|
onInternationalCheckoutSelected?: () => Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Called when a logged-in user is detected on the BigCommerce native
|
|
9
|
+
* `/checkout` page with a saved default shipping address that is
|
|
10
|
+
* internationally shippable. The implementer should prompt the user to
|
|
11
|
+
* choose between proceeding to the Zonos international checkout or staying
|
|
12
|
+
* on the BigCommerce native checkout (so they can pick a domestic address
|
|
13
|
+
* instead).
|
|
14
|
+
*
|
|
15
|
+
* When omitted, the redirect is performed automatically (legacy behavior).
|
|
16
|
+
*
|
|
17
|
+
* @returns `'redirect'` to perform the international redirect, or `'stay'`
|
|
18
|
+
* to keep the user on the BigCommerce native checkout. Once `'stay'` is
|
|
19
|
+
* returned the watcher will not prompt again for the rest of the session.
|
|
20
|
+
*/
|
|
21
|
+
onLoggedInInternationalAddressDetected?: () => Promise<'redirect' | 'stay'>;
|
|
7
22
|
onShippingAddressSessionFound?: (shippingAddress: {
|
|
8
23
|
address1: string;
|
|
9
24
|
address2: string;
|
|
@@ -20,5 +35,5 @@ type Params = {
|
|
|
20
35
|
* Watch for changes in domestic checkout step. Redirects user to home page to open international checkout when user selects a country in the international shipping zone.
|
|
21
36
|
* @note Only works on default bigcommerce checkout page
|
|
22
37
|
*/
|
|
23
|
-
export declare const watchImmediateBigcommerceDomesticCheckoutRedirect: ({ domesticRedirectedBtnSelector, onInternationalCheckoutSelected, onShippingAddressSessionFound, }: Params) => void;
|
|
38
|
+
export declare const watchImmediateBigcommerceDomesticCheckoutRedirect: ({ domesticRedirectedBtnSelector, onInternationalCheckoutSelected, onLoggedInInternationalAddressDetected, onShippingAddressSessionFound, }: Params) => void;
|
|
24
39
|
export {};
|
|
@@ -135,8 +135,20 @@ export declare const setupCartDataWithSettings: (cartId: string) => Promise<{
|
|
|
135
135
|
allowedDomains: Array<string>;
|
|
136
136
|
anchorElementSelector: string;
|
|
137
137
|
cartUrlPattern: string | null;
|
|
138
|
+
countryDisplayRules: {
|
|
139
|
+
countrySelector: {
|
|
140
|
+
behavior: import("../../types/generated/graphql.internal.types").HelloCountryDisplayBehavior;
|
|
141
|
+
excludedCountries: Array<import("../..").CountryCode>;
|
|
142
|
+
includedCountries: Array<import("../..").CountryCode>;
|
|
143
|
+
};
|
|
144
|
+
widgetVisibility: {
|
|
145
|
+
behavior: import("../../types/generated/graphql.internal.types").HelloCountryDisplayBehavior;
|
|
146
|
+
excludedCountries: Array<import("../..").CountryCode>;
|
|
147
|
+
includedCountries: Array<import("../..").CountryCode>;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
138
150
|
createdAt: string;
|
|
139
|
-
|
|
151
|
+
organization: string;
|
|
140
152
|
currencyBehavior: import("../../types/generated/graphql.internal.types").HelloCurrencyBehavior;
|
|
141
153
|
currencyElementSelector: string;
|
|
142
154
|
desktopLocation: import("../../types/generated/graphql.internal.types").HelloDesktopLocation;
|
|
@@ -146,15 +158,15 @@ export declare const setupCartDataWithSettings: (cartId: string) => Promise<{
|
|
|
146
158
|
id: string;
|
|
147
159
|
mobileLocation: import("../..").HelloMobileLocation;
|
|
148
160
|
mode: import("../../types/generated/graphql.internal.types").Mode;
|
|
149
|
-
|
|
161
|
+
productTitleElementSelector: string | null;
|
|
150
162
|
peekMessageBehavior: import("../../types/generated/graphql.internal.types").HelloPeekMessageBehavior;
|
|
151
|
-
|
|
163
|
+
peekMessageDelay: number;
|
|
152
164
|
productAddToCartElementSelector: string | null;
|
|
153
|
-
productDescriptionElementSelector: string | null;
|
|
154
165
|
productListUrlPattern: string | null;
|
|
155
|
-
|
|
166
|
+
productDetailUrlPattern: string | null;
|
|
167
|
+
createdBy: string;
|
|
156
168
|
productPriceElementSelector: string | null;
|
|
157
|
-
|
|
169
|
+
productDescriptionElementSelector: string | null;
|
|
158
170
|
restrictionBehavior: import("../../types/generated/graphql.internal.types").HelloRestrictionBehavior;
|
|
159
171
|
updatedAt: string;
|
|
160
172
|
updatedBy: string;
|
|
@@ -727,7 +727,7 @@ export type FailToGetQuoteErrorsQuery = {
|
|
|
727
727
|
};
|
|
728
728
|
export type LocaleCountryMessagesQuery = {
|
|
729
729
|
locale_countryCodesPage: Array<{
|
|
730
|
-
countryCodes: Array<string
|
|
730
|
+
countryCodes: Array<string>;
|
|
731
731
|
countryCodesPageMessageLinks: Array<{
|
|
732
732
|
id: number;
|
|
733
733
|
message: {
|
|
@@ -684,7 +684,7 @@ export type FailToGetQuoteErrorsQuery = {
|
|
|
684
684
|
|
|
685
685
|
export type LocaleCountryMessagesQuery = {
|
|
686
686
|
locale_countryCodesPage: Array<{
|
|
687
|
-
countryCodes: Array<string
|
|
687
|
+
countryCodes: Array<string>;
|
|
688
688
|
countryCodesPageMessageLinks: Array<{
|
|
689
689
|
id: number;
|
|
690
690
|
message: {
|