@zonos/elements 1.3.18-alpha.1 → 1.3.18-alpha.3
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/README.md +341 -96
- package/dist/cjs/{cart-95209ae8.js → cart-5468dfd1.js} +284 -89
- package/dist/cjs/{getBorderRadius-44b3eca1.js → getBorderRadius-bcb309a8.js} +1 -1
- package/dist/cjs/{index-654a6001.js → index-b071017b.js} +4 -1
- package/dist/cjs/index.cjs.js +624 -0
- package/dist/cjs/{isDarkColor-01f45d3f.js → isDarkColor-b0393089.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/logError-4e2f2020.js +58 -0
- package/dist/cjs/{submitGtag-9d60f3bb.js → submitGtag-127a220f.js} +4 -3
- package/dist/cjs/zonos-address_8.cjs.entry.js +30 -18
- package/dist/cjs/zonos-badge_2.cjs.entry.js +7 -7
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +22 -11
- package/dist/cjs/zonos-card_2.cjs.entry.js +11 -10
- package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_11.cjs.entry.js} +118 -11
- package/dist/cjs/zonos-checkout.cjs.entry.js +47 -20
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +29 -24
- package/dist/cjs/zonos-country-flag.cjs.entry.js +6 -5
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +12 -11
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -8
- package/dist/cjs/zonos-hello.cjs.entry.js +14 -13
- package/dist/cjs/zonos-input.cjs.entry.js +7 -7
- package/dist/cjs/zonos-link.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
- package/dist/cjs/zonos-notification.cjs.entry.js +2 -2
- package/dist/cjs/zonos-payment.cjs.entry.js +8 -7
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-d8bb0bda.js → zonosStore-7c6205ca.js} +2 -1
- package/dist/collection/__mocks__/zonos-url/index.js +1 -0
- package/dist/collection/__tests__/build-utils/urlCheckOne.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -9
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +45 -8
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +3 -3
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.css +12 -0
- package/dist/collection/components/common/zonos-button/zonos-button.js +43 -8
- package/dist/collection/components/common/zonos-card/zonos-card.js +3 -3
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/assets/ExclamationMarkDuotoneIcon.svg +4 -0
- package/dist/collection/components/common/zonos-confirm-dialog/assets/HelpDuotoneIcon.svg +4 -0
- package/dist/collection/components/common/zonos-confirm-dialog/assets/WarningDuotoneIcon.svg +4 -0
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +125 -0
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +322 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -4
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +38 -4
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/{component-template/zonos-link → zonos-link}/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
- package/dist/collection/components/main/zonos-controller.js +12 -8
- package/dist/collection/components/store/hello/localization.js +12 -2
- 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 +1 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +3 -3
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/environment.js +0 -2
- package/dist/collection/index.js +1 -0
- package/dist/collection/scripts/_extractZonosQaUrl.js +26 -0
- package/dist/collection/scripts/_getZonosQaUrl.js +40 -0
- package/dist/collection/scripts/{loadStripe.js → _loadStripe.js} +1 -1
- package/dist/collection/scripts/{zonosBase.js → _zonosBase.js} +31 -7
- package/dist/collection/scripts/index.js +2 -0
- package/dist/collection/types/generated/graphql.customer.types.js +1 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +1 -0
- package/dist/esm/{cart-6448e883.js → cart-63d120e1.js} +257 -60
- package/dist/{components/getBorderRadius.js → esm/getBorderRadius-d244b4b1.js} +1 -1
- package/dist/esm/{index-e063389c.js → index-3b46f3c3.js} +4 -1
- package/dist/esm/index.js +621 -0
- package/dist/{components/isDarkColor.js → esm/isDarkColor-39a36e82.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/logError-c456c092.js +55 -0
- package/dist/esm/{submitGtag-b7d369cd.js → submitGtag-35bb3945.js} +3 -2
- package/dist/esm/zonos-address_8.entry.js +28 -16
- package/dist/esm/zonos-badge_2.entry.js +7 -7
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +22 -11
- package/dist/esm/zonos-card_2.entry.js +11 -10
- package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_11.entry.js} +118 -12
- package/dist/esm/zonos-checkout.entry.js +35 -8
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +12 -7
- package/dist/esm/zonos-country-flag.entry.js +6 -5
- package/dist/esm/zonos-country-select_3.entry.js +12 -11
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +9 -8
- package/dist/esm/zonos-hello.entry.js +6 -5
- package/dist/esm/zonos-input.entry.js +7 -7
- package/dist/esm/zonos-link.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +4 -4
- package/dist/esm/zonos-notification.entry.js +2 -2
- package/dist/esm/zonos-payment.entry.js +7 -6
- package/dist/esm/zonos-select-dialog-header_2.entry.js +6 -6
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +2 -1
- package/dist/esm-es5/cart-63d120e1.js +1 -0
- package/dist/esm-es5/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
- package/dist/esm-es5/{index-e063389c.js → index-3b46f3c3.js} +1 -1
- package/dist/esm-es5/index.js +1 -0
- package/dist/esm-es5/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/logError-c456c092.js +1 -0
- package/dist/esm-es5/submitGtag-35bb3945.js +1 -0
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.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_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_11.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.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_3.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-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +1 -1
- package/dist/scripts/index.d.ts +3908 -0
- package/dist/scripts/index.js +1 -0
- package/dist/scripts/loadZonos.d.ts +3954 -0
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +5 -7
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +13 -3
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +2 -2
- package/dist/types/components/common/zonos-button/zonos-button.d.ts +7 -1
- package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +60 -0
- package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +6 -1
- package/dist/types/components/main/zonos-controller.d.ts +1 -1
- package/dist/types/components/store/checkout/stripe.d.ts +1 -1
- 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/store/translationStore.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +5 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +2 -2
- package/dist/types/components/utils/styles.d.ts +1 -0
- package/dist/types/components.d.ts +164 -19
- package/dist/types/index.d.ts +1 -0
- package/dist/types/scripts/_extractZonosQaUrl.d.ts +11 -0
- package/dist/types/scripts/_getZonosQaUrl.d.ts +4 -0
- package/dist/types/scripts/{loadStripe.d.ts → _loadStripe.d.ts} +1 -1
- package/dist/types/scripts/{zonosBase.d.ts → _zonosBase.d.ts} +51 -3
- package/dist/types/scripts/index.d.ts +2 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +12 -0
- package/dist/types/types/checkout/api/CalculateLandedCostRequest.d.ts +9 -0
- package/dist/types/types/generated/graphql.customer.types.d.ts +1 -0
- package/dist/types/types/generated/graphql.customer.types.ts +3 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -0
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -0
- package/dist/types/types/global.d.ts +1 -1
- package/dist/zonos-elements/assets/ExclamationMarkDuotoneIcon.svg +4 -0
- package/dist/zonos-elements/assets/HelpDuotoneIcon.svg +4 -0
- package/dist/zonos-elements/assets/WarningDuotoneIcon.svg +4 -0
- package/dist/zonos-elements/index.esm.js +1 -0
- package/dist/zonos-elements/p-023c764c.system.entry.js +1 -0
- package/dist/zonos-elements/p-06b6ce37.system.entry.js +1 -0
- package/dist/zonos-elements/p-07c53d83.entry.js +1 -0
- package/dist/zonos-elements/{p-fe246229.system.entry.js → p-0d0f9694.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fd49d864.entry.js → p-0d5b5bcc.entry.js} +1 -1
- package/dist/zonos-elements/{p-771fbeb3.system.js → p-1b9442f6.system.js} +1 -1
- package/dist/zonos-elements/p-200b661c.entry.js +1 -0
- package/dist/zonos-elements/{p-835c8928.entry.js → p-281b8bdf.entry.js} +1 -1
- package/dist/zonos-elements/{p-a889c1bc.entry.js → p-2af19b63.entry.js} +1 -1
- package/dist/zonos-elements/{p-582d8b27.entry.js → p-2ced091f.entry.js} +1 -1
- package/dist/zonos-elements/{p-909a331c.js → p-2f759d82.js} +1 -1
- package/dist/zonos-elements/p-3b66df06.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d7acc81c.entry.js → p-3ba8838a.entry.js} +1 -1
- package/dist/zonos-elements/p-428c034a.entry.js +1 -0
- package/dist/zonos-elements/p-43b2d28d.system.entry.js +1 -0
- package/dist/zonos-elements/p-47a42a30.js +1 -0
- package/dist/zonos-elements/{p-9ec93319.entry.js → p-498a0e18.entry.js} +1 -1
- package/dist/zonos-elements/{p-f71489e5.system.entry.js → p-4f72bfee.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4fc1459c.entry.js +1 -0
- package/dist/zonos-elements/p-4fca8fd5.system.entry.js +1 -0
- package/dist/zonos-elements/{p-79f3c4f5.system.js → p-58e730b6.system.js} +1 -1
- package/dist/zonos-elements/{p-83fecb2a.entry.js → p-58fc8ec1.entry.js} +1 -1
- package/dist/zonos-elements/{p-e7b4b756.entry.js → p-597b75f3.entry.js} +1 -1
- package/dist/zonos-elements/{p-87badea9.system.js → p-62ecfbcc.system.js} +1 -1
- package/dist/zonos-elements/p-63db40b9.system.js +1 -0
- package/dist/zonos-elements/p-693b9985.js +1 -0
- package/dist/zonos-elements/{p-ff403840.entry.js → p-6cb9812b.entry.js} +1 -1
- package/dist/zonos-elements/p-6df1fc3a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-bf32179a.system.entry.js → p-6eda6199.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6f6f160d.entry.js +1 -0
- package/dist/zonos-elements/p-7c78e340.entry.js +1 -0
- package/dist/zonos-elements/{p-305f27c7.entry.js → p-80442f16.entry.js} +1 -1
- package/dist/zonos-elements/p-808fa731.js +1 -0
- package/dist/zonos-elements/p-80f174b9.system.js +1 -0
- package/dist/zonos-elements/{p-679877b1.system.entry.js → p-8171d013.system.entry.js} +1 -1
- package/dist/zonos-elements/p-85f3d13f.system.js +1 -0
- package/dist/zonos-elements/p-8aeb0629.entry.js +1 -0
- package/dist/zonos-elements/{p-83cc2936.js → p-8c0b4a61.js} +1 -1
- package/dist/zonos-elements/{p-4dca5484.system.entry.js → p-8cd6633a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9288fd21.system.entry.js +1 -0
- package/dist/zonos-elements/p-98ad4ab3.system.entry.js +1 -0
- package/dist/zonos-elements/{p-ad088d46.system.entry.js → p-9e8d38f7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e108e5ed.system.entry.js → p-a47382ae.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b1567fa3.system.entry.js +1 -0
- package/dist/zonos-elements/p-b81562f5.entry.js +1 -0
- package/dist/zonos-elements/{p-3638e2ed.entry.js → p-bd9b2165.entry.js} +1 -1
- package/dist/zonos-elements/p-bdfa3705.system.entry.js +1 -0
- package/dist/zonos-elements/{p-13ddaf31.js → p-ce347974.js} +1 -1
- package/dist/zonos-elements/p-cfae51c1.system.js +1 -0
- package/dist/zonos-elements/p-d6eb260c.entry.js +1 -0
- package/dist/zonos-elements/{p-17e265c3.system.entry.js → p-d7a939df.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-163ff5b5.system.js → p-d99232c5.system.js} +1 -1
- package/dist/zonos-elements/p-dc40a60c.entry.js +1 -0
- package/dist/zonos-elements/{p-36a461a6.system.entry.js → p-dda78e8e.system.entry.js} +1 -1
- package/dist/zonos-elements/p-de405d7e.system.entry.js +1 -0
- package/dist/zonos-elements/p-e0bf9666.system.js +1 -0
- package/dist/zonos-elements/p-eaa335e1.js +1 -0
- package/dist/zonos-elements/{p-b98bdbcc.system.entry.js → p-ed3524ae.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +5 -3
- package/dist/components/ILanguage.js +0 -24
- package/dist/components/classes.js +0 -12
- package/dist/components/containsNonLatinChars.js +0 -21
- package/dist/components/formatCurrency.js +0 -11
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -1
- package/dist/components/isCheckoutMobile.js +0 -6
- package/dist/components/isColorVariable.js +0 -14
- package/dist/components/stripe.js +0 -1681
- package/dist/components/submitGtag.js +0 -19
- package/dist/components/trackConversionEvent.js +0 -37
- package/dist/components/translationStore.js +0 -5371
- package/dist/components/zonos-address-display.d.ts +0 -11
- package/dist/components/zonos-address-display.js +0 -6
- package/dist/components/zonos-address-display2.js +0 -64
- package/dist/components/zonos-address-form.d.ts +0 -11
- package/dist/components/zonos-address-form.js +0 -6
- package/dist/components/zonos-address-form2.js +0 -84
- package/dist/components/zonos-address-update-dialog.d.ts +0 -11
- package/dist/components/zonos-address-update-dialog.js +0 -6
- package/dist/components/zonos-address-update-dialog2.js +0 -264
- package/dist/components/zonos-address.d.ts +0 -11
- package/dist/components/zonos-address.js +0 -6
- package/dist/components/zonos-address2.js +0 -176
- package/dist/components/zonos-badge.d.ts +0 -11
- package/dist/components/zonos-badge.js +0 -6
- package/dist/components/zonos-badge2.js +0 -61
- package/dist/components/zonos-banner.d.ts +0 -11
- package/dist/components/zonos-banner.js +0 -6
- package/dist/components/zonos-banner2.js +0 -95
- package/dist/components/zonos-button.d.ts +0 -11
- package/dist/components/zonos-button.js +0 -6
- package/dist/components/zonos-button2.js +0 -174
- package/dist/components/zonos-card.d.ts +0 -11
- package/dist/components/zonos-card.js +0 -6
- package/dist/components/zonos-card2.js +0 -57
- package/dist/components/zonos-cart-items.d.ts +0 -11
- package/dist/components/zonos-cart-items.js +0 -6
- package/dist/components/zonos-cart-items2.js +0 -57
- package/dist/components/zonos-cart-restricted-items.d.ts +0 -11
- package/dist/components/zonos-cart-restricted-items.js +0 -6
- package/dist/components/zonos-cart-restricted-items2.js +0 -135
- package/dist/components/zonos-cart-subtotal.d.ts +0 -11
- package/dist/components/zonos-cart-subtotal.js +0 -6
- package/dist/components/zonos-cart-subtotal2.js +0 -91
- package/dist/components/zonos-checkbox.d.ts +0 -11
- package/dist/components/zonos-checkbox.js +0 -6
- package/dist/components/zonos-checkbox2.js +0 -96
- package/dist/components/zonos-checkout-finish.d.ts +0 -11
- package/dist/components/zonos-checkout-finish.js +0 -6
- package/dist/components/zonos-checkout-finish2.js +0 -246
- package/dist/components/zonos-checkout-footer.d.ts +0 -11
- package/dist/components/zonos-checkout-footer.js +0 -6
- package/dist/components/zonos-checkout-footer2.js +0 -125
- package/dist/components/zonos-checkout-payment.d.ts +0 -11
- package/dist/components/zonos-checkout-payment.js +0 -6
- package/dist/components/zonos-checkout-payment2.js +0 -104
- package/dist/components/zonos-checkout-progress-tabs.d.ts +0 -11
- package/dist/components/zonos-checkout-progress-tabs.js +0 -6
- package/dist/components/zonos-checkout-progress-tabs2.js +0 -138
- package/dist/components/zonos-checkout.d.ts +0 -11
- package/dist/components/zonos-checkout.js +0 -1018
- package/dist/components/zonos-collapse.d.ts +0 -11
- package/dist/components/zonos-collapse.js +0 -6
- package/dist/components/zonos-collapse2.js +0 -78
- package/dist/components/zonos-component.d.ts +0 -11
- package/dist/components/zonos-component.js +0 -48
- package/dist/components/zonos-controller.d.ts +0 -11
- package/dist/components/zonos-controller.js +0 -309
- package/dist/components/zonos-country-flag.d.ts +0 -11
- package/dist/components/zonos-country-flag.js +0 -6
- package/dist/components/zonos-country-flag2.js +0 -54
- package/dist/components/zonos-country-select.d.ts +0 -11
- package/dist/components/zonos-country-select.js +0 -6
- package/dist/components/zonos-country-select2.js +0 -1891
- package/dist/components/zonos-custom-message.d.ts +0 -11
- package/dist/components/zonos-custom-message.js +0 -6
- package/dist/components/zonos-custom-message2.js +0 -72
- package/dist/components/zonos-customer-info.d.ts +0 -11
- package/dist/components/zonos-customer-info.js +0 -6
- package/dist/components/zonos-customer-info2.js +0 -316
- package/dist/components/zonos-dialog.d.ts +0 -11
- package/dist/components/zonos-dialog.js +0 -6
- package/dist/components/zonos-dialog2.js +0 -124
- package/dist/components/zonos-hello-dialog-footer.d.ts +0 -11
- package/dist/components/zonos-hello-dialog-footer.js +0 -6
- package/dist/components/zonos-hello-dialog-footer2.js +0 -83
- package/dist/components/zonos-hello-dialog.d.ts +0 -11
- package/dist/components/zonos-hello-dialog.js +0 -6
- package/dist/components/zonos-hello-dialog2.js +0 -305
- package/dist/components/zonos-hello.d.ts +0 -11
- package/dist/components/zonos-hello.js +0 -879
- package/dist/components/zonos-icon.d.ts +0 -11
- package/dist/components/zonos-icon.js +0 -6
- package/dist/components/zonos-icon2.js +0 -55
- package/dist/components/zonos-input.d.ts +0 -11
- package/dist/components/zonos-input.js +0 -6
- package/dist/components/zonos-input2.js +0 -78
- package/dist/components/zonos-language-select.d.ts +0 -11
- package/dist/components/zonos-language-select.js +0 -6
- package/dist/components/zonos-language-select2.js +0 -88
- package/dist/components/zonos-link-authentication.d.ts +0 -11
- package/dist/components/zonos-link-authentication.js +0 -6
- package/dist/components/zonos-link-authentication2.js +0 -80
- package/dist/components/zonos-link.d.ts +0 -11
- package/dist/components/zonos-link.js +0 -43
- package/dist/components/zonos-logo.d.ts +0 -11
- package/dist/components/zonos-logo.js +0 -49
- package/dist/components/zonos-notification.d.ts +0 -11
- package/dist/components/zonos-notification.js +0 -6
- package/dist/components/zonos-notification2.js +0 -92
- package/dist/components/zonos-payment.d.ts +0 -11
- package/dist/components/zonos-payment.js +0 -6
- package/dist/components/zonos-payment2.js +0 -77
- package/dist/components/zonos-review.d.ts +0 -11
- package/dist/components/zonos-review.js +0 -6
- package/dist/components/zonos-review2.js +0 -89
- package/dist/components/zonos-select-dialog-header.d.ts +0 -11
- package/dist/components/zonos-select-dialog-header.js +0 -6
- package/dist/components/zonos-select-dialog-header2.js +0 -71
- package/dist/components/zonos-shipping-rich-radio.d.ts +0 -11
- package/dist/components/zonos-shipping-rich-radio.js +0 -6
- package/dist/components/zonos-shipping-rich-radio2.js +0 -88
- package/dist/components/zonos-shipping.d.ts +0 -11
- package/dist/components/zonos-shipping.js +0 -6
- package/dist/components/zonos-shipping2.js +0 -159
- package/dist/components/zonos-spinner.d.ts +0 -11
- package/dist/components/zonos-spinner.js +0 -6
- package/dist/components/zonos-spinner2.js +0 -43
- package/dist/components/zonos-text.d.ts +0 -11
- package/dist/components/zonos-text.js +0 -6
- package/dist/components/zonos-text2.js +0 -182
- package/dist/components/zonos-tooltip.d.ts +0 -11
- package/dist/components/zonos-tooltip.js +0 -6
- package/dist/components/zonos-tooltip2.js +0 -48
- package/dist/components/zonos-v-stack.d.ts +0 -11
- package/dist/components/zonos-v-stack.js +0 -6
- package/dist/components/zonos-v-stack2.js +0 -38
- package/dist/components/zonosStore.js +0 -2880
- package/dist/esm/getBorderRadius-567f1786.js +0 -18
- package/dist/esm/isDarkColor-7f62035a.js +0 -1199
- package/dist/esm-es5/cart-6448e883.js +0 -1
- package/dist/esm-es5/submitGtag-b7d369cd.js +0 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +0 -1
- package/dist/scripts/checkIfLoadVersionDomain.js +0 -1
- package/dist/scripts/extractZonosQaUrl.js +0 -1
- package/dist/scripts/getTempCartById.js +0 -1
- package/dist/scripts/loadStripe.js +0 -1
- package/dist/scripts/stripe.js +0 -1
- package/dist/scripts/zonosBase.js +0 -1
- package/dist/zonos-elements/p-0759a84d.system.entry.js +0 -1
- package/dist/zonos-elements/p-0ee61fba.system.entry.js +0 -1
- package/dist/zonos-elements/p-154aaf95.system.js +0 -1
- package/dist/zonos-elements/p-2fc561ac.system.entry.js +0 -1
- package/dist/zonos-elements/p-345503b7.entry.js +0 -1
- package/dist/zonos-elements/p-3be2e469.entry.js +0 -1
- package/dist/zonos-elements/p-47c75f81.system.entry.js +0 -1
- package/dist/zonos-elements/p-50ea2036.system.js +0 -1
- package/dist/zonos-elements/p-54004793.system.entry.js +0 -1
- package/dist/zonos-elements/p-58f8cee7.system.entry.js +0 -1
- package/dist/zonos-elements/p-61100d2e.system.entry.js +0 -1
- package/dist/zonos-elements/p-6ea746b9.entry.js +0 -1
- package/dist/zonos-elements/p-70c35519.system.entry.js +0 -1
- package/dist/zonos-elements/p-7b19cd96.entry.js +0 -1
- package/dist/zonos-elements/p-7cc730b0.js +0 -1
- package/dist/zonos-elements/p-7f48fafe.entry.js +0 -1
- package/dist/zonos-elements/p-9c575a18.system.entry.js +0 -1
- package/dist/zonos-elements/p-aaf1e517.system.js +0 -1
- package/dist/zonos-elements/p-aff5f4ca.js +0 -1
- package/dist/zonos-elements/p-beca252d.entry.js +0 -1
- package/dist/zonos-elements/p-c1f4bb4a.entry.js +0 -1
- package/dist/zonos-elements/p-c64eefdd.system.entry.js +0 -1
- package/dist/zonos-elements/p-ca621143.entry.js +0 -1
- package/dist/zonos-elements/p-dbee6587.entry.js +0 -1
- package/dist/zonos-elements/p-e0706108.system.entry.js +0 -1
- package/dist/zonos-elements/p-e3335228.entry.js +0 -1
- package/dist/zonos-elements/p-ef9cbb66.system.js +0 -1
- package/dist/zonos-elements/p-f1962041.js +0 -1
- /package/dist/collection/components/common/{component-template/zonos-link → zonos-link}/zonos-link.css +0 -0
- /package/dist/collection/scripts/{checkIfLoadVersionDomain.js → _checkIfLoadVersionDomain.js} +0 -0
- /package/dist/collection/scripts/{stripe.js → _stripe.js} +0 -0
- /package/dist/types/components/common/{component-template/zonos-link → zonos-link}/zonos-link.d.ts +0 -0
- /package/dist/types/scripts/{checkIfLoadVersionDomain.d.ts → _checkIfLoadVersionDomain.d.ts} +0 -0
- /package/dist/types/scripts/{stripe.d.ts → _stripe.d.ts} +0 -0
|
@@ -17,6 +17,9 @@ export const stringsPolish = {
|
|
|
17
17
|
'Address line 2': {
|
|
18
18
|
value: 'Linia adresowa 2',
|
|
19
19
|
},
|
|
20
|
+
'Are you sure?': {
|
|
21
|
+
value: 'Jesteś pewien?',
|
|
22
|
+
},
|
|
20
23
|
Back: {
|
|
21
24
|
value: 'Wstecz',
|
|
22
25
|
},
|
|
@@ -35,6 +38,9 @@ export const stringsPolish = {
|
|
|
35
38
|
City: {
|
|
36
39
|
value: 'Miasto',
|
|
37
40
|
},
|
|
41
|
+
Close: {
|
|
42
|
+
value: 'Zamknij',
|
|
43
|
+
},
|
|
38
44
|
Contact: {
|
|
39
45
|
value: 'Kontakt',
|
|
40
46
|
},
|
|
@@ -56,6 +62,9 @@ export const stringsPolish = {
|
|
|
56
62
|
'Delivery options': {
|
|
57
63
|
value: 'Opcje dostawy',
|
|
58
64
|
},
|
|
65
|
+
"Don't close": {
|
|
66
|
+
value: 'Nie zamykaj',
|
|
67
|
+
},
|
|
59
68
|
'Duties and taxes will be applied to items and shipping.': {
|
|
60
69
|
value: 'Cła i podatki zostaną naliczone do towarów i wysyłki.',
|
|
61
70
|
},
|
|
@@ -239,6 +248,9 @@ export const stringsPolish = {
|
|
|
239
248
|
'What you entered': {
|
|
240
249
|
value: 'To, co wpisałeś',
|
|
241
250
|
},
|
|
251
|
+
'Would you like to close checkout and return to the site?': {
|
|
252
|
+
value: 'Czy chcesz zamknąć kasę i wrócić na stronę?',
|
|
253
|
+
},
|
|
242
254
|
"You're all set!": {
|
|
243
255
|
value: 'Jesteś gotowy!',
|
|
244
256
|
},
|
|
@@ -17,6 +17,9 @@ export const stringsPortuguese = {
|
|
|
17
17
|
'Address line 2': {
|
|
18
18
|
value: 'Endereço linha 2',
|
|
19
19
|
},
|
|
20
|
+
'Are you sure?': {
|
|
21
|
+
value: 'Você tem certeza?',
|
|
22
|
+
},
|
|
20
23
|
Back: {
|
|
21
24
|
value: 'Voltar',
|
|
22
25
|
},
|
|
@@ -35,6 +38,9 @@ export const stringsPortuguese = {
|
|
|
35
38
|
City: {
|
|
36
39
|
value: 'Cidade',
|
|
37
40
|
},
|
|
41
|
+
Close: {
|
|
42
|
+
value: 'Fechar',
|
|
43
|
+
},
|
|
38
44
|
Contact: {
|
|
39
45
|
value: 'Contato',
|
|
40
46
|
},
|
|
@@ -56,6 +62,9 @@ export const stringsPortuguese = {
|
|
|
56
62
|
'Delivery options': {
|
|
57
63
|
value: 'Opções de entrega',
|
|
58
64
|
},
|
|
65
|
+
"Don't close": {
|
|
66
|
+
value: 'Não fechar',
|
|
67
|
+
},
|
|
59
68
|
'Duties and taxes will be applied to items and shipping.': {
|
|
60
69
|
value: 'Impostos e taxas serão aplicados aos itens e ao frete.',
|
|
61
70
|
},
|
|
@@ -239,6 +248,9 @@ export const stringsPortuguese = {
|
|
|
239
248
|
'What you entered': {
|
|
240
249
|
value: 'O que você digitou',
|
|
241
250
|
},
|
|
251
|
+
'Would you like to close checkout and return to the site?': {
|
|
252
|
+
value: 'Gostaria de fechar o checkout e voltar ao site?',
|
|
253
|
+
},
|
|
242
254
|
"You're all set!": {
|
|
243
255
|
value: 'Está tudo pronto!',
|
|
244
256
|
},
|
|
@@ -17,6 +17,9 @@ export const stringsRussian = {
|
|
|
17
17
|
'Address line 2': {
|
|
18
18
|
value: 'Адресная строка 2',
|
|
19
19
|
},
|
|
20
|
+
'Are you sure?': {
|
|
21
|
+
value: 'Вы уверены?',
|
|
22
|
+
},
|
|
20
23
|
Back: {
|
|
21
24
|
value: 'Назад',
|
|
22
25
|
},
|
|
@@ -35,6 +38,9 @@ export const stringsRussian = {
|
|
|
35
38
|
City: {
|
|
36
39
|
value: 'Город',
|
|
37
40
|
},
|
|
41
|
+
Close: {
|
|
42
|
+
value: 'Закрыть',
|
|
43
|
+
},
|
|
38
44
|
Contact: {
|
|
39
45
|
value: 'Контакты',
|
|
40
46
|
},
|
|
@@ -56,6 +62,9 @@ export const stringsRussian = {
|
|
|
56
62
|
'Delivery options': {
|
|
57
63
|
value: 'Варианты доставки',
|
|
58
64
|
},
|
|
65
|
+
"Don't close": {
|
|
66
|
+
value: 'Не закрывайте',
|
|
67
|
+
},
|
|
59
68
|
'Duties and taxes will be applied to items and shipping.': {
|
|
60
69
|
value: 'Пошлины и налоги будут применены к товарам и доставке.',
|
|
61
70
|
},
|
|
@@ -239,6 +248,9 @@ export const stringsRussian = {
|
|
|
239
248
|
'What you entered': {
|
|
240
249
|
value: 'То, что вы ввели',
|
|
241
250
|
},
|
|
251
|
+
'Would you like to close checkout and return to the site?': {
|
|
252
|
+
value: 'Вы хотите завершить оформление заказа и вернуться на сайт?',
|
|
253
|
+
},
|
|
242
254
|
"You're all set!": {
|
|
243
255
|
value: 'Все готово!',
|
|
244
256
|
},
|
|
@@ -17,6 +17,9 @@ export const stringsSpanish = {
|
|
|
17
17
|
'Address line 2': {
|
|
18
18
|
value: 'Línea de dirección 2',
|
|
19
19
|
},
|
|
20
|
+
'Are you sure?': {
|
|
21
|
+
value: '¿Estás seguro?',
|
|
22
|
+
},
|
|
20
23
|
Back: {
|
|
21
24
|
value: 'Regresar',
|
|
22
25
|
},
|
|
@@ -35,6 +38,9 @@ export const stringsSpanish = {
|
|
|
35
38
|
City: {
|
|
36
39
|
value: 'Ciudad',
|
|
37
40
|
},
|
|
41
|
+
Close: {
|
|
42
|
+
value: 'Cerrar',
|
|
43
|
+
},
|
|
38
44
|
Contact: {
|
|
39
45
|
value: 'Contacto',
|
|
40
46
|
},
|
|
@@ -56,6 +62,9 @@ export const stringsSpanish = {
|
|
|
56
62
|
'Delivery options': {
|
|
57
63
|
value: 'Opciones de entrega',
|
|
58
64
|
},
|
|
65
|
+
"Don't close": {
|
|
66
|
+
value: 'No cerrar',
|
|
67
|
+
},
|
|
59
68
|
'Duties and taxes will be applied to items and shipping.': {
|
|
60
69
|
value: 'Los impuestos y aranceles se aplicarán a los artículos y al envío.',
|
|
61
70
|
},
|
|
@@ -239,6 +248,9 @@ export const stringsSpanish = {
|
|
|
239
248
|
'What you entered': {
|
|
240
249
|
value: 'Lo que ingresaste',
|
|
241
250
|
},
|
|
251
|
+
'Would you like to close checkout and return to the site?': {
|
|
252
|
+
value: '¿Te gustaría cerrar la caja y volver al sitio?',
|
|
253
|
+
},
|
|
242
254
|
"You're all set!": {
|
|
243
255
|
value: '¡Está todo listo!',
|
|
244
256
|
},
|
|
@@ -17,6 +17,9 @@ export const stringsSwedish = {
|
|
|
17
17
|
'Address line 2': {
|
|
18
18
|
value: 'Adressrad 2',
|
|
19
19
|
},
|
|
20
|
+
'Are you sure?': {
|
|
21
|
+
value: 'Är du säker?',
|
|
22
|
+
},
|
|
20
23
|
Back: {
|
|
21
24
|
value: 'Tillbaka',
|
|
22
25
|
},
|
|
@@ -35,6 +38,9 @@ export const stringsSwedish = {
|
|
|
35
38
|
City: {
|
|
36
39
|
value: 'Stad',
|
|
37
40
|
},
|
|
41
|
+
Close: {
|
|
42
|
+
value: 'Stänga',
|
|
43
|
+
},
|
|
38
44
|
Contact: {
|
|
39
45
|
value: 'Kontakt',
|
|
40
46
|
},
|
|
@@ -56,6 +62,9 @@ export const stringsSwedish = {
|
|
|
56
62
|
'Delivery options': {
|
|
57
63
|
value: 'Leveransalternativ',
|
|
58
64
|
},
|
|
65
|
+
"Don't close": {
|
|
66
|
+
value: 'Stäng inte',
|
|
67
|
+
},
|
|
59
68
|
'Duties and taxes will be applied to items and shipping.': {
|
|
60
69
|
value: 'Tull och skatter kommer att tillämpas på varor och frakt.',
|
|
61
70
|
},
|
|
@@ -239,6 +248,9 @@ export const stringsSwedish = {
|
|
|
239
248
|
'What you entered': {
|
|
240
249
|
value: 'Det du angav',
|
|
241
250
|
},
|
|
251
|
+
'Would you like to close checkout and return to the site?': {
|
|
252
|
+
value: 'Vill du stänga kassan och återvända till webbplatsen?',
|
|
253
|
+
},
|
|
242
254
|
"You're all set!": {
|
|
243
255
|
value: 'Du är klar!',
|
|
244
256
|
},
|
|
@@ -17,6 +17,9 @@ export const stringsTurkish = {
|
|
|
17
17
|
'Address line 2': {
|
|
18
18
|
value: 'Adres satırı 2',
|
|
19
19
|
},
|
|
20
|
+
'Are you sure?': {
|
|
21
|
+
value: 'Emin misiniz?',
|
|
22
|
+
},
|
|
20
23
|
Back: {
|
|
21
24
|
value: 'Geri',
|
|
22
25
|
},
|
|
@@ -35,6 +38,9 @@ export const stringsTurkish = {
|
|
|
35
38
|
City: {
|
|
36
39
|
value: 'Şehir',
|
|
37
40
|
},
|
|
41
|
+
Close: {
|
|
42
|
+
value: 'Kapat',
|
|
43
|
+
},
|
|
38
44
|
Contact: {
|
|
39
45
|
value: 'İletişim',
|
|
40
46
|
},
|
|
@@ -56,6 +62,9 @@ export const stringsTurkish = {
|
|
|
56
62
|
'Delivery options': {
|
|
57
63
|
value: 'Teslimat seçenekleri',
|
|
58
64
|
},
|
|
65
|
+
"Don't close": {
|
|
66
|
+
value: 'Kapatma',
|
|
67
|
+
},
|
|
59
68
|
'Duties and taxes will be applied to items and shipping.': {
|
|
60
69
|
value: 'Ürünlere ve kargoya vergi ve gümrük vergisi uygulanacak.',
|
|
61
70
|
},
|
|
@@ -239,6 +248,9 @@ export const stringsTurkish = {
|
|
|
239
248
|
'What you entered': {
|
|
240
249
|
value: 'Girdiğin şey',
|
|
241
250
|
},
|
|
251
|
+
'Would you like to close checkout and return to the site?': {
|
|
252
|
+
value: 'Ödemeyi kapatıp siteye geri dönmek ister misiniz?',
|
|
253
|
+
},
|
|
242
254
|
"You're all set!": {
|
|
243
255
|
value: 'Hazırsınız!',
|
|
244
256
|
},
|
|
@@ -17,6 +17,9 @@ export const stringsVietnamese = {
|
|
|
17
17
|
'Address line 2': {
|
|
18
18
|
value: 'Dòng địa chỉ 2',
|
|
19
19
|
},
|
|
20
|
+
'Are you sure?': {
|
|
21
|
+
value: 'Bạn có chắc không?',
|
|
22
|
+
},
|
|
20
23
|
Back: {
|
|
21
24
|
value: 'Quay lại',
|
|
22
25
|
},
|
|
@@ -35,6 +38,9 @@ export const stringsVietnamese = {
|
|
|
35
38
|
City: {
|
|
36
39
|
value: 'Thành phố',
|
|
37
40
|
},
|
|
41
|
+
Close: {
|
|
42
|
+
value: 'Đóng',
|
|
43
|
+
},
|
|
38
44
|
Contact: {
|
|
39
45
|
value: 'Liên hệ',
|
|
40
46
|
},
|
|
@@ -56,6 +62,9 @@ export const stringsVietnamese = {
|
|
|
56
62
|
'Delivery options': {
|
|
57
63
|
value: 'Tùy chọn giao hàng',
|
|
58
64
|
},
|
|
65
|
+
"Don't close": {
|
|
66
|
+
value: 'Đừng đóng',
|
|
67
|
+
},
|
|
59
68
|
'Duties and taxes will be applied to items and shipping.': {
|
|
60
69
|
value: 'Thuế và phí sẽ được áp dụng cho hàng hóa và vận chuyển.',
|
|
61
70
|
},
|
|
@@ -239,6 +248,9 @@ export const stringsVietnamese = {
|
|
|
239
248
|
'What you entered': {
|
|
240
249
|
value: 'Những gì bạn đã nhập',
|
|
241
250
|
},
|
|
251
|
+
'Would you like to close checkout and return to the site?': {
|
|
252
|
+
value: 'Bạn có muốn đóng thanh toán và quay lại trang web không?',
|
|
253
|
+
},
|
|
242
254
|
"You're all set!": {
|
|
243
255
|
value: 'Bạn đã sẵn sàng!',
|
|
244
256
|
},
|
|
@@ -114,6 +114,7 @@ const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
|
|
|
114
114
|
zonosStore.organizationName = ((_b = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _b === void 0 ? void 0 : _b.name) || '';
|
|
115
115
|
zonosStore.storeId = ((_d = (_c = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _c === void 0 ? void 0 : _c.references) === null || _d === void 0 ? void 0 : _d.storeId) || null;
|
|
116
116
|
zonosStore.currencyConverter = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.currencyConverter;
|
|
117
|
+
zonosStore.onCountryChange = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.onCountryChange;
|
|
117
118
|
};
|
|
118
119
|
const zonosStoreFontFamily = () => {
|
|
119
120
|
const fontFamily = zonosStore.appearance.fontFamily || 'Inter';
|
|
@@ -135,7 +135,7 @@ export class ZonosAddress {
|
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
138
|
-
return (h(Host, { key: '
|
|
138
|
+
return (h(Host, { key: '9ef595622320579d43ac54bdfdf0e8a24ab5132b', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '82925c3c426f384a266cfe62c2899d1ec30d0920', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'bb3b99783a75434a5a7cc6856ccf9218f1cfd212', class: "zonos--address-component" })));
|
|
139
139
|
}
|
|
140
140
|
static get is() { return "zonos-address"; }
|
|
141
141
|
static get encapsulation() { return "scoped"; }
|
|
@@ -189,10 +189,10 @@ export class ZonosAddress {
|
|
|
189
189
|
"type": "unknown",
|
|
190
190
|
"mutable": false,
|
|
191
191
|
"complexType": {
|
|
192
|
-
"original": "
|
|
192
|
+
"original": "ContactOption | null",
|
|
193
193
|
"resolved": "ContactOption | null",
|
|
194
194
|
"references": {
|
|
195
|
-
"
|
|
195
|
+
"ContactOption": {
|
|
196
196
|
"location": "import",
|
|
197
197
|
"path": "@stripe/stripe-js",
|
|
198
198
|
"id": ""
|
package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js
CHANGED
|
@@ -42,7 +42,7 @@ export class ZonosLinkAuthentication {
|
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '1a206ef754ae3df55e57f7b8f587bde7d04c20d3', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '7f938c30d9ee5d404df05db96b814a48786c9c83', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'fddc855fd5eabf43a4d99532516053f0da71ae20', class: "zonos--link-authentication-component" })));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "zonos-link-authentication"; }
|
|
48
48
|
static get encapsulation() { return "scoped"; }
|
|
@@ -37,7 +37,7 @@ export class ZonosPayment {
|
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'fa213e672515b2aa3e389f0e7f918350a076e493', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: 'ed1fa911c3765962f7a3a7ce606a334541ca0a9a', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'afeb5892da35ae3fef9659d05a0bb77924acb7f0', class: "zonos--payment-component" })));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "zonos-payment"; }
|
|
43
43
|
static get encapsulation() { return "scoped"; }
|
|
@@ -181,12 +181,10 @@ export const getReplaceEnv = (props) => Object.keys(env).reduce((prev, curr) =>
|
|
|
181
181
|
const foundOverride = !!override && currEnv in override;
|
|
182
182
|
// return the override value if it's found
|
|
183
183
|
if (foundOverride) {
|
|
184
|
-
// @ts-expect-error
|
|
185
184
|
prev[`process.env.${currEnv}`] = `"${override[currEnv]}"`;
|
|
186
185
|
return prev;
|
|
187
186
|
}
|
|
188
187
|
if (currEnv) {
|
|
189
|
-
// @ts-expect-error
|
|
190
188
|
prev[`process.env.${currEnv}`] = `"${env[currEnv] || ''}"`;
|
|
191
189
|
}
|
|
192
190
|
return prev;
|
package/dist/collection/index.js
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts the zonosQaUrl from the url
|
|
3
|
+
*
|
|
4
|
+
* @param url - url to extract zonosQaUrl from
|
|
5
|
+
*
|
|
6
|
+
* **NOTE**: value of zonosQaUrl param should be without protocol, allowed characters are: a-z, A-Z, 0-9, -, _
|
|
7
|
+
* @example
|
|
8
|
+
* valid: https://www.zonos.com/?zonosQaUrl=some-feature-v988
|
|
9
|
+
* invalid: https://www.zonos.com/?zonosQaUrl=https://zonos-something
|
|
10
|
+
*/
|
|
11
|
+
export const extractZonosQaUrl = (url) => {
|
|
12
|
+
if (!url) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
// get params from url
|
|
16
|
+
const param = new URL(url).searchParams;
|
|
17
|
+
const zonosQaUrl = param.get('zonosQaUrl');
|
|
18
|
+
if (!zonosQaUrl) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
const hasInvalidCharacters = /[^a-zA-Z0-9-_]+/.test(zonosQaUrl);
|
|
22
|
+
if (!!hasInvalidCharacters) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return zonosQaUrl;
|
|
26
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { log } from "../components/utils/logging/log";
|
|
2
|
+
import { extractZonosQaUrl } from "./_extractZonosQaUrl";
|
|
3
|
+
/**
|
|
4
|
+
* Get the Zonos QA URL and return it. Will remove `zonosQaUrl` from the url query if it doesn't exists.
|
|
5
|
+
*/
|
|
6
|
+
export const getZonosQaUrl = () => {
|
|
7
|
+
if (typeof window === 'undefined') {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
11
|
+
if (!qaUrl) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
// If the qaUrl, use the dev-elements domain to forward the request to the dev server to quickly debug the issue
|
|
15
|
+
if (qaUrl === 'dev-elements') {
|
|
16
|
+
return 'https://dev.elements.zonos.com';
|
|
17
|
+
}
|
|
18
|
+
const suffixDomain = 'preview.js.zonos.com';
|
|
19
|
+
const fullUrl = `https://${qaUrl}.${suffixDomain}`;
|
|
20
|
+
log(`[ZONOS-WARNING] using '${fullUrl}' for loading script`, 'warn');
|
|
21
|
+
// request to the url and check if the request has an error
|
|
22
|
+
void fetch(fullUrl)
|
|
23
|
+
.then(() => {
|
|
24
|
+
// cleanup checkout session to avoid using the prod session in preview domain
|
|
25
|
+
window.sessionStorage.removeItem('zonos--checkout-session-id');
|
|
26
|
+
window.sessionStorage.removeItem('zonos--client-secret');
|
|
27
|
+
})
|
|
28
|
+
.catch(() => {
|
|
29
|
+
alert(`[ZONOS-WARNING] '${fullUrl}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);
|
|
30
|
+
// remove the zonosQaUrl param from url
|
|
31
|
+
const urlSearchParams = new URLSearchParams(window.location.search);
|
|
32
|
+
urlSearchParams.delete('zonosQaUrl');
|
|
33
|
+
const { pathname } = window.location;
|
|
34
|
+
const newUrl = `${pathname}?${urlSearchParams.toString()}`;
|
|
35
|
+
window.history.replaceState({}, '', newUrl);
|
|
36
|
+
window.location.reload();
|
|
37
|
+
return null;
|
|
38
|
+
});
|
|
39
|
+
return fullUrl;
|
|
40
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Execute our own script injection after a tick to give users time to do their
|
|
2
|
-
import { initStripe, zonosStripeLoadScript, } from "./
|
|
2
|
+
import { initStripe, zonosStripeLoadScript, } from "./_stripe";
|
|
3
3
|
// own script injection.
|
|
4
4
|
const stripePromise = Promise.resolve().then(() => zonosStripeLoadScript(null));
|
|
5
5
|
let loadCalled = false;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
var _a;
|
|
2
2
|
import { log } from "../components/utils/logging/log";
|
|
3
3
|
import { logError } from "../components/utils/logging/logError";
|
|
4
|
-
import { checkIfLoadVersionDomain } from "./
|
|
5
|
-
import {
|
|
4
|
+
import { checkIfLoadVersionDomain } from "./_checkIfLoadVersionDomain";
|
|
5
|
+
import { getZonosQaUrl } from "./_getZonosQaUrl";
|
|
6
|
+
import { zonosLoadStripe } from "./_loadStripe";
|
|
6
7
|
/**
|
|
7
8
|
* Get the load version and url based on the loadScriptSrc, if the domain that used to load `zonos.js` is in white listed domains, use currentLoadScriptUrl as the load url instead, if zonosQaUrl exists, it would also fall under the white listed domain
|
|
8
9
|
*/
|
|
9
10
|
const zonosLoadUrl = (() => {
|
|
11
|
+
if (typeof document === 'undefined') {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
10
14
|
const scriptExist = document.querySelector(`script[src*="/zonos.js"]`);
|
|
11
15
|
const { currentLoadScriptUrl, isWhiteListed } = checkIfLoadVersionDomain({
|
|
12
16
|
loadScriptSrc: scriptExist === null || scriptExist === void 0 ? void 0 : scriptExist.src,
|
|
@@ -26,9 +30,15 @@ export class Zonos {
|
|
|
26
30
|
_a = Zonos;
|
|
27
31
|
Zonos.doneInit = false;
|
|
28
32
|
// if query 'zonosDebug=1' param from url, debug mode is on
|
|
29
|
-
Zonos.debug =
|
|
30
|
-
|
|
33
|
+
Zonos.debug = typeof window !== 'undefined' &&
|
|
34
|
+
!!window.location.search.match(/\?.*(&*)zonosDebug=1/);
|
|
35
|
+
Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
36
|
+
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
31
37
|
Zonos.isBigCommerce = false;
|
|
38
|
+
/**
|
|
39
|
+
* By default, the package will load from npm
|
|
40
|
+
*/
|
|
41
|
+
Zonos.isNpm = true;
|
|
32
42
|
Zonos.internationalHideSelector = '';
|
|
33
43
|
Zonos.zonosQaUrl = null;
|
|
34
44
|
Zonos.version = `v${process.env.NEXT_PUBLIC_ZONOS_PACKAGE_VERSION}`;
|
|
@@ -36,7 +46,7 @@ Zonos.modeAlerted = false;
|
|
|
36
46
|
Zonos.tempCartData = null;
|
|
37
47
|
Zonos.getCurrentTimestamp = () => new Date().getTime();
|
|
38
48
|
Zonos.zonosController = null;
|
|
39
|
-
Zonos.init = async ({ appearance, checkoutSettings, currencyConverter, helloSettings, storeId, zonosApiKey, }) => {
|
|
49
|
+
Zonos.init = async ({ appearance, checkoutSettings, currencyConverter, helloSettings, onCountryChange, storeId, zonosApiKey, }) => {
|
|
40
50
|
if (_a.doneInit) {
|
|
41
51
|
// do nothing if zonos is already initializeds
|
|
42
52
|
return;
|
|
@@ -64,6 +74,7 @@ Zonos.init = async ({ appearance, checkoutSettings, currencyConverter, helloSett
|
|
|
64
74
|
checkoutSettings,
|
|
65
75
|
currencyConverter,
|
|
66
76
|
helloSettings,
|
|
77
|
+
onCountryChange,
|
|
67
78
|
},
|
|
68
79
|
zonosApiKey,
|
|
69
80
|
});
|
|
@@ -264,20 +275,33 @@ Zonos.injectScript = ({ fallBackDomain, isModule, scriptDomain, theRestUrl, }) =
|
|
|
264
275
|
};
|
|
265
276
|
headOrBody.appendChild(script);
|
|
266
277
|
};
|
|
278
|
+
/**
|
|
279
|
+
* We now support loading Zonos via npm. For clients using npm, `zonosBase` will always load from the server side. Therefore, the `zonosLoadUrl` defined earlier won't work since it lacks access to client-side APIs such as `window` and `document`.
|
|
280
|
+
*/
|
|
281
|
+
Zonos.getZonosUrl = () => {
|
|
282
|
+
// To ensure that sites using zonos-elements load the script from a specific domain when using npm, we need to check for zonosQaUrl and use it if available. Otherwise it will always load from the compiled versioned domain
|
|
283
|
+
if (_a.isNpm) {
|
|
284
|
+
const zonosQaUrl = getZonosQaUrl();
|
|
285
|
+
// Default to hard coded domain if zonosQaUrl is not available
|
|
286
|
+
return zonosQaUrl || ZONOS_URL;
|
|
287
|
+
}
|
|
288
|
+
return ZONOS_URL;
|
|
289
|
+
};
|
|
267
290
|
Zonos.injectZonosCdn = () => {
|
|
291
|
+
const ZONOS_LOAD_URL = _a.getZonosUrl();
|
|
268
292
|
// init zonos elements when the zonosKey is valid
|
|
269
293
|
// inject esmodule cdn for zonos elements
|
|
270
294
|
_a.injectScript({
|
|
271
295
|
fallBackDomain: JS_DELIVR_ZONOS_URL,
|
|
272
296
|
isModule: true,
|
|
273
|
-
scriptDomain:
|
|
297
|
+
scriptDomain: ZONOS_LOAD_URL,
|
|
274
298
|
theRestUrl: 'dist/zonos-elements/zonos-elements.esm.js',
|
|
275
299
|
});
|
|
276
300
|
// inject non module cdn for zonos elements
|
|
277
301
|
_a.injectScript({
|
|
278
302
|
fallBackDomain: JS_DELIVR_ZONOS_URL,
|
|
279
303
|
isModule: false,
|
|
280
|
-
scriptDomain:
|
|
304
|
+
scriptDomain: ZONOS_LOAD_URL,
|
|
281
305
|
theRestUrl: 'dist/zonos-elements/zonos-elements.js',
|
|
282
306
|
});
|
|
283
307
|
log('Zonos cdn script injected!');
|
|
@@ -43,6 +43,7 @@ export const featureAudienceNameEnum = {
|
|
|
43
43
|
I18nSales: 'i18n_sales',
|
|
44
44
|
ItHead: 'it_head',
|
|
45
45
|
NewCheckoutMerchant: 'new_checkout_merchant',
|
|
46
|
+
NewPayoutReportMerchant: 'new_payout_report_merchant',
|
|
46
47
|
Onboarding: 'onboarding',
|
|
47
48
|
PrincipalEngineer: 'principal_engineer',
|
|
48
49
|
ProServeHead: 'pro_serve_head',
|