@zonos/elements 1.3.5 → 1.3.6
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/ILanguage-d247b45b.js +26 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/{cart-c1b0915c.js → cart-b8bbf22d.js} +62 -19
- package/dist/cjs/{getBorderRadius-cd7ef574.js → getBorderRadius-b252096d.js} +8 -4
- package/dist/cjs/index.cjs.js +0 -21
- package/dist/cjs/{isDarkColor-5eda1323.js → isDarkColor-168002d6.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/{localization-d43e1540.js → localization-2c9f5765.js} +366 -1
- package/dist/cjs/{submitGtag-bd6e9b42.js → submitGtag-792fe45d.js} +2 -2
- package/dist/cjs/zonos-address_4.cjs.entry.js +289 -0
- package/dist/cjs/zonos-badge_2.cjs.entry.js +57 -0
- package/dist/cjs/zonos-banner.cjs.entry.js +4 -9
- package/dist/cjs/{zonos-button_2.cjs.entry.js → zonos-button_3.cjs.entry.js} +42 -15
- package/dist/cjs/zonos-card_2.cjs.entry.js +26 -14
- package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_9.cjs.entry.js} +75 -84
- package/dist/cjs/zonos-checkout.cjs.entry.js +12 -13
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
- package/dist/cjs/zonos-country-flag.cjs.entry.js +40 -0
- package/dist/cjs/{zonos-country-flag_4.cjs.entry.js → zonos-country-select_3.cjs.entry.js} +29 -55
- package/dist/cjs/zonos-elements.cjs.js +6 -4
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +13 -8
- package/dist/cjs/zonos-hello.cjs.entry.js +3 -3
- package/dist/cjs/zonos-logo.cjs.entry.js +32 -0
- package/dist/cjs/zonos-notification.cjs.entry.js +5 -6
- package/dist/cjs/zonos-payment.cjs.entry.js +7 -7
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +45 -0
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +4 -4
- package/dist/cjs/zonos-text.cjs.entry.js +4 -6
- package/dist/cjs/{zonosStore-b88b5671.js → zonosStore-5d94dabb.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +5 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/chevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/globe.svg +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/zonosIcon.svg +5 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +126 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +60 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +12 -21
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +4 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +9 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +12 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +7 -26
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +2 -25
- package/dist/collection/components/common/zonos-button/zonos-button.css +18 -0
- package/dist/collection/components/common/zonos-button/zonos-button.js +9 -28
- package/dist/collection/components/common/zonos-card/zonos-card.js +2 -20
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.css +82 -0
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +218 -0
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +1 -20
- package/dist/collection/components/common/zonos-country-select/assets/greenCheckDuotone.svg +4 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +11 -10
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +7 -11
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +4 -4
- package/dist/collection/components/common/zonos-language-select/assets/greenCheckDuotone.svg +4 -0
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.css +61 -0
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +58 -0
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -21
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +3 -26
- package/dist/collection/components/common/zonos-select-dialog-header/assets/removeIcon.svg +1 -0
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.css +45 -0
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +68 -0
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -4
- package/dist/collection/components/common/zonos-text/zonos-text.js +4 -24
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.css +55 -0
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +72 -0
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -21
- 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/assets/globe.svg +3 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +10 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +27 -5
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +16 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +11 -5
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/checkout/stripe.js +28 -7
- package/dist/collection/components/store/hello/localization.js +5 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +18 -0
- package/dist/collection/components/store/translationStore/strings.base.js +18 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +18 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +18 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +18 -0
- package/dist/collection/components/store/translationStore/strings.french.js +18 -0
- package/dist/collection/components/store/translationStore/strings.german.js +18 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +18 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +18 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +18 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +18 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +18 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +18 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +18 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +18 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +18 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +18 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +18 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +18 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +18 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +63 -24
- 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/components/utils/api/prepCalculateLandedCost.js +19 -1
- package/dist/collection/components/utils/api/triggerBuildLandedCost.js +11 -5
- package/dist/collection/components/utils/getBorderRadius.js +7 -3
- package/dist/collection/types/ILanguage.js +22 -0
- package/dist/collection/types/generated/graphql.customer.types.js +13 -0
- package/dist/collection/types/index.js +0 -1
- package/dist/collection/types/styles/Color.js +9 -0
- package/dist/components/ILanguage.js +24 -0
- package/dist/components/getBorderRadius.js +7 -3
- package/dist/components/index.js +0 -1
- package/dist/components/isDarkColor.js +1 -1
- package/dist/components/localization.js +365 -1
- package/dist/components/{cart.js → stripe.js} +273 -228
- package/dist/components/submitGtag.js +1 -1
- package/dist/components/zonos-address2.js +65 -26
- package/dist/components/zonos-badge2.js +8 -10
- package/dist/components/zonos-banner2.js +3 -9
- package/dist/components/zonos-button2.js +10 -12
- package/dist/components/zonos-card2.js +3 -5
- package/dist/components/zonos-cart-items2.js +1 -1
- package/dist/components/zonos-cart-subtotal2.js +14 -8
- package/dist/components/zonos-checkbox.d.ts +11 -0
- package/dist/components/zonos-checkbox.js +6 -0
- package/dist/components/zonos-checkbox2.js +87 -0
- package/dist/components/zonos-checkout-finish2.js +3 -3
- package/dist/components/zonos-checkout-footer.d.ts +11 -0
- package/dist/components/zonos-checkout-footer.js +6 -0
- package/dist/components/zonos-checkout-footer2.js +109 -0
- package/dist/components/zonos-checkout-payment2.js +2 -2
- package/dist/components/zonos-checkout.js +75 -52
- package/dist/components/zonos-collapse2.js +3 -3
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +4 -4
- package/dist/components/zonos-country-flag2.js +3 -5
- package/dist/components/zonos-country-select2.js +26 -19
- package/dist/components/zonos-custom-message2.js +3 -3
- package/dist/components/zonos-customer-info2.js +30 -10
- package/dist/components/zonos-dialog2.js +4 -4
- package/dist/components/zonos-hello-dialog-footer2.js +23 -10
- package/dist/components/zonos-hello-dialog2.js +41 -23
- package/dist/components/zonos-hello.js +31 -19
- package/dist/components/zonos-icon2.js +4 -4
- package/dist/components/zonos-language-select.d.ts +11 -0
- package/dist/components/zonos-language-select.js +6 -0
- package/dist/components/zonos-language-select2.js +87 -0
- package/dist/components/zonos-link-authentication2.js +2 -2
- package/dist/components/zonos-logo.js +44 -1
- package/dist/components/zonos-notification2.js +4 -6
- package/dist/components/zonos-payment2.js +2 -2
- package/dist/components/zonos-review2.js +4 -4
- package/dist/components/zonos-select-dialog-header.d.ts +11 -0
- package/dist/components/zonos-select-dialog-header.js +6 -0
- package/dist/components/zonos-select-dialog-header2.js +71 -0
- package/dist/components/zonos-shipping-rich-radio2.js +2 -2
- package/dist/components/zonos-shipping2.js +2 -2
- package/dist/components/zonos-spinner2.js +3 -3
- package/dist/components/zonos-text2.js +4 -7
- package/dist/components/zonos-tooltip.d.ts +11 -0
- package/dist/components/zonos-tooltip.js +6 -0
- package/dist/components/zonos-tooltip2.js +48 -0
- package/dist/components/zonos-v-stack2.js +4 -6
- package/dist/components/zonosStore.js +1 -1
- package/dist/esm/ILanguage-97790bee.js +24 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/{cart-7e7c7585.js → cart-bc3bb22e.js} +63 -18
- package/dist/esm/getBorderRadius-e9736f7e.js +20 -0
- package/dist/esm/index.js +1 -6
- package/dist/esm/{isDarkColor-8696cb70.js → isDarkColor-e982fa09.js} +1 -1
- package/dist/esm/loader.js +6 -4
- package/dist/esm/{localization-5d83fde2.js → localization-d8f6453b.js} +366 -2
- package/dist/esm/{submitGtag-776c5e10.js → submitGtag-bebe2cb0.js} +2 -2
- package/dist/esm/zonos-address_4.entry.js +282 -0
- package/dist/esm/zonos-badge_2.entry.js +52 -0
- package/dist/esm/zonos-banner.entry.js +4 -9
- package/dist/esm/{zonos-button_2.entry.js → zonos-button_3.entry.js} +42 -16
- package/dist/esm/zonos-card_2.entry.js +26 -14
- package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_9.entry.js} +75 -83
- package/dist/esm/zonos-checkout.entry.js +12 -13
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +7 -7
- package/dist/esm/zonos-country-flag.entry.js +36 -0
- package/dist/esm/{zonos-country-flag_4.entry.js → zonos-country-select_3.entry.js} +30 -55
- package/dist/esm/zonos-elements.js +7 -5
- package/dist/esm/zonos-hello-dialog.entry.js +13 -8
- package/dist/esm/zonos-hello.entry.js +3 -3
- package/dist/esm/zonos-logo.entry.js +28 -0
- package/dist/esm/zonos-notification.entry.js +5 -6
- package/dist/esm/zonos-payment.entry.js +7 -7
- package/dist/esm/zonos-select-dialog-header_2.entry.js +40 -0
- package/dist/esm/zonos-shipping-rich-radio.entry.js +4 -4
- package/dist/esm/zonos-text.entry.js +4 -6
- package/dist/esm/{zonosStore-e59617f8.js → zonosStore-e6c7be3a.js} +1 -1
- package/dist/esm-es5/ILanguage-97790bee.js +1 -0
- package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
- package/dist/esm-es5/cart-bc3bb22e.js +1 -0
- package/dist/esm-es5/getBorderRadius-e9736f7e.js +1 -0
- package/dist/esm-es5/index.js +0 -1
- package/dist/esm-es5/{isDarkColor-8696cb70.js → isDarkColor-e982fa09.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-d8f6453b.js +1 -0
- package/dist/esm-es5/{submitGtag-776c5e10.js → submitGtag-bebe2cb0.js} +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -0
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -0
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -0
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_9.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 -0
- package/dist/esm-es5/zonos-country-select_3.entry.js +1 -0
- 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-logo.entry.js +1 -0
- 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 -0
- 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-e59617f8.js → zonosStore-e6c7be3a.js} +1 -1
- package/dist/scripts/insertTranslations.js +1 -0
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.d.ts +7 -0
- package/dist/types/components/common/zonos-badge/zonos-badge.d.ts +1 -5
- package/dist/types/components/common/zonos-banner/zonos-banner.d.ts +0 -4
- package/dist/types/components/common/zonos-button/zonos-button.d.ts +1 -5
- package/dist/types/components/common/zonos-card/zonos-card.d.ts +0 -4
- package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +42 -0
- package/dist/types/components/common/zonos-country-flag/zonos-country-flag.d.ts +0 -4
- package/dist/types/components/common/zonos-country-select/zonos-country-select.d.ts +1 -1
- package/dist/types/components/common/zonos-icon/zonos-icon.d.ts +1 -1
- package/dist/types/components/common/zonos-language-select/zonos-language-select.d.ts +9 -0
- package/dist/types/components/common/zonos-logo/zonos-logo.d.ts +0 -4
- package/dist/types/components/common/zonos-notification/zonos-notification.d.ts +0 -4
- package/dist/types/components/common/zonos-select-dialog-header/zonos-select-dialog-header.d.ts +12 -0
- package/dist/types/components/common/zonos-spinner/zonos-spinner.d.ts +1 -1
- package/dist/types/components/common/zonos-text/zonos-text.d.ts +1 -5
- package/dist/types/components/common/zonos-tooltip/zonos-tooltip.d.ts +12 -0
- package/dist/types/components/common/zonos-v-stack/zonos-v-stack.d.ts +0 -4
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.d.ts +5 -0
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +2 -0
- package/dist/types/components/store/checkout/stripe.d.ts +8 -0
- package/dist/types/components/store/hello/localization.d.ts +2 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +18 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +18 -0
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +3 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +18 -2
- package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
- package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
- package/dist/types/components/utils/getBorderRadius.d.ts +1 -1
- package/dist/types/components.d.ts +242 -116
- package/dist/types/types/ILanguage.d.ts +81 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -3
- package/dist/types/types/checkout/api/CalculateLandedCostRequest.d.ts +13 -0
- package/dist/types/types/generated/graphql.customer.types.d.ts +16 -4
- package/dist/types/types/generated/graphql.customer.types.ts +21 -4
- package/dist/types/types/generated/graphql.frontend.types.d.ts +6 -6
- package/dist/types/types/generated/graphql.frontend.types.ts +14 -4
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/styles/Color.d.ts +2 -0
- package/dist/zonos-elements/index.esm.js +0 -1
- package/dist/zonos-elements/{p-626b5a52.system.entry.js → p-00d63df1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-04f63cea.entry.js +1 -0
- package/dist/zonos-elements/{p-120df5be.system.entry.js → p-06652d87.system.entry.js} +1 -1
- package/dist/zonos-elements/p-066c5893.system.js +1 -0
- package/dist/zonos-elements/p-0c7480a5.entry.js +1 -0
- package/dist/zonos-elements/p-16ad90ca.js +1 -0
- package/dist/zonos-elements/p-16b74c31.system.js +1 -0
- package/dist/zonos-elements/{p-0024f8c2.js → p-17550a10.js} +1 -1
- package/dist/zonos-elements/p-1d16a6fb.js +1 -0
- package/dist/zonos-elements/p-1ea68e3b.entry.js +1 -0
- package/dist/zonos-elements/{p-28d7b75d.entry.js → p-1ed530cc.entry.js} +1 -1
- package/dist/zonos-elements/p-289c8b1a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-eb631432.system.entry.js → p-2a00c270.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-be23cc91.system.entry.js → p-32bca9c8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-37f53a79.entry.js +1 -0
- package/dist/zonos-elements/p-394cf1cf.js +1 -0
- package/dist/zonos-elements/{p-af910392.js → p-3ef27745.js} +1 -1
- package/dist/zonos-elements/{p-18e09138.system.entry.js → p-458fd100.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e8da4463.js → p-47fac33f.js} +1 -1
- package/dist/zonos-elements/p-49a764e9.system.entry.js +1 -0
- package/dist/zonos-elements/p-4fafb2a5.system.entry.js +1 -0
- package/dist/zonos-elements/p-4fb71a93.js +1 -0
- package/dist/zonos-elements/{p-dc09ca69.system.js → p-50287643.system.js} +1 -1
- package/dist/zonos-elements/p-50ea2036.system.js +1 -0
- package/dist/zonos-elements/p-5276c61b.system.entry.js +1 -0
- package/dist/zonos-elements/p-56ba5cbf.system.js +1 -0
- package/dist/zonos-elements/{p-5a0264e8.system.entry.js → p-5a113c3d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6308b347.entry.js +1 -0
- package/dist/zonos-elements/p-63d1b1fe.entry.js +1 -0
- package/dist/zonos-elements/p-7347ee7c.system.entry.js +1 -0
- package/dist/zonos-elements/p-7a6144b1.entry.js +1 -0
- package/dist/zonos-elements/p-7dd8e8ba.system.entry.js +1 -0
- package/dist/zonos-elements/p-8c26a080.system.js +1 -0
- package/dist/zonos-elements/p-96aabe02.entry.js +1 -0
- package/dist/zonos-elements/p-9cbbf261.system.entry.js +1 -0
- package/dist/zonos-elements/p-a33745e9.entry.js +1 -0
- package/dist/zonos-elements/{p-aca66e4b.entry.js → p-a4de3fb2.entry.js} +1 -1
- package/dist/zonos-elements/p-a682fd38.system.entry.js +1 -0
- package/dist/zonos-elements/p-abe7524f.system.js +1 -0
- package/dist/zonos-elements/{p-73174d0c.system.entry.js → p-b81a0577.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ba1a111a.system.entry.js +1 -0
- package/dist/zonos-elements/p-ba43275e.entry.js +1 -0
- package/dist/zonos-elements/p-bd6a2095.entry.js +1 -0
- package/dist/zonos-elements/{p-f82e000f.system.entry.js → p-c4321084.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b58d2231.entry.js → p-cdf114a2.entry.js} +1 -1
- package/dist/zonos-elements/p-d5ae3cbb.system.entry.js +1 -0
- package/dist/zonos-elements/p-d5d7c8f5.entry.js +1 -0
- package/dist/zonos-elements/p-dd7729fd.system.entry.js +1 -0
- package/dist/zonos-elements/p-de339fb6.entry.js +1 -0
- package/dist/zonos-elements/p-e1255160.js +1 -0
- package/dist/zonos-elements/p-e8a9bc56.entry.js +1 -0
- package/dist/zonos-elements/{p-7f68c103.system.js → p-e99d79d9.system.js} +1 -1
- package/dist/zonos-elements/p-ec25f180.entry.js +1 -0
- package/dist/zonos-elements/{p-ead79548.system.js → p-f49dfd06.system.js} +1 -1
- package/dist/zonos-elements/{p-31fa76da.entry.js → p-f6f5f644.entry.js} +1 -1
- package/dist/zonos-elements/p-fcc4f140.system.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +17 -18
- package/dist/cjs/zonos-address_2.cjs.entry.js +0 -161
- package/dist/cjs/zonos-badge.cjs.entry.js +0 -38
- package/dist/cjs/zonos-icon.cjs.entry.js +0 -35
- package/dist/collection/components/common/zonos-country-select/assets/arrowLeftBlue.svg +0 -1
- package/dist/components/zonos-logo2.js +0 -48
- package/dist/esm/getBorderRadius-9e4cb3b1.js +0 -16
- package/dist/esm/zonos-address_2.entry.js +0 -156
- package/dist/esm/zonos-badge.entry.js +0 -34
- package/dist/esm/zonos-icon.entry.js +0 -31
- package/dist/esm-es5/cart-7e7c7585.js +0 -1
- package/dist/esm-es5/getBorderRadius-9e4cb3b1.js +0 -1
- package/dist/esm-es5/localization-5d83fde2.js +0 -1
- package/dist/esm-es5/zonos-address_2.entry.js +0 -1
- package/dist/esm-es5/zonos-badge.entry.js +0 -1
- package/dist/esm-es5/zonos-button_2.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +0 -1
- package/dist/esm-es5/zonos-country-flag_4.entry.js +0 -1
- package/dist/esm-es5/zonos-icon.entry.js +0 -1
- package/dist/zonos-elements/p-027abb50.entry.js +0 -1
- package/dist/zonos-elements/p-09c5dc1b.system.entry.js +0 -1
- package/dist/zonos-elements/p-1156ae5d.system.entry.js +0 -1
- package/dist/zonos-elements/p-12ecf765.system.js +0 -1
- package/dist/zonos-elements/p-174239da.system.js +0 -1
- package/dist/zonos-elements/p-1c00ffea.system.entry.js +0 -1
- package/dist/zonos-elements/p-21793192.entry.js +0 -1
- package/dist/zonos-elements/p-2589a038.system.entry.js +0 -1
- package/dist/zonos-elements/p-3319e4db.entry.js +0 -1
- package/dist/zonos-elements/p-357f0c61.entry.js +0 -1
- package/dist/zonos-elements/p-410045c5.system.entry.js +0 -1
- package/dist/zonos-elements/p-4d0861e9.system.js +0 -1
- package/dist/zonos-elements/p-54ef8ff3.entry.js +0 -1
- package/dist/zonos-elements/p-6444a4b9.entry.js +0 -1
- package/dist/zonos-elements/p-65f4af1a.system.entry.js +0 -1
- package/dist/zonos-elements/p-661bc488.entry.js +0 -1
- package/dist/zonos-elements/p-6c47083f.entry.js +0 -1
- package/dist/zonos-elements/p-6d454281.entry.js +0 -1
- package/dist/zonos-elements/p-7748735d.entry.js +0 -1
- package/dist/zonos-elements/p-78886ed6.system.entry.js +0 -1
- package/dist/zonos-elements/p-8ebc0b64.js +0 -1
- package/dist/zonos-elements/p-a6f2e282.system.js +0 -1
- package/dist/zonos-elements/p-b035f9e5.system.js +0 -1
- package/dist/zonos-elements/p-b1ffb37b.entry.js +0 -1
- package/dist/zonos-elements/p-bd02a65c.entry.js +0 -1
- package/dist/zonos-elements/p-bea31a7b.system.entry.js +0 -1
- package/dist/zonos-elements/p-cfe4a318.js +0 -1
- package/dist/zonos-elements/p-e4a2a1b0.system.entry.js +0 -1
- package/dist/zonos-elements/p-f2733cc7.js +0 -1
- package/dist/zonos-elements/p-f342e7c7.entry.js +0 -1
- /package/dist/cjs/{index-3ead02fe.js → index-72767498.js} +0 -0
- /package/dist/esm/{index-81a199ef.js → index-b5be4dc3.js} +0 -0
- /package/dist/esm-es5/{index-81a199ef.js → index-b5be4dc3.js} +0 -0
- /package/dist/zonos-elements/{p-4d8545e1.js → p-58127116.js} +0 -0
- /package/dist/zonos-elements/{p-4d39efb6.system.js → p-d1ab0823.system.js} +0 -0
|
@@ -8,6 +8,9 @@ export const stringsTurkish = {
|
|
|
8
8
|
Back: {
|
|
9
9
|
value: 'Geri',
|
|
10
10
|
},
|
|
11
|
+
'Billing address': {
|
|
12
|
+
value: 'Fatura Adresi',
|
|
13
|
+
},
|
|
11
14
|
'Cart subtotal': {
|
|
12
15
|
value: 'Sepet ara toplam',
|
|
13
16
|
},
|
|
@@ -56,6 +59,9 @@ export const stringsTurkish = {
|
|
|
56
59
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
57
60
|
value: 'Hiçbir gönderi yöntemi bulunamadı - eğer hata devam ediyorsa adresinizi düzenlemeyi deneyin veya destekle iletişime geçin',
|
|
58
61
|
},
|
|
62
|
+
'Nothing due at the door': {
|
|
63
|
+
value: 'Kapıda ödenecek bir şey yok',
|
|
64
|
+
},
|
|
59
65
|
'Order is over the de minimis threshold for both duty and tax': {
|
|
60
66
|
value: 'Sipariş hem gümrük hem vergi için minimum sınırın üzerinde',
|
|
61
67
|
},
|
|
@@ -89,12 +95,24 @@ export const stringsTurkish = {
|
|
|
89
95
|
'Restricted items found': {
|
|
90
96
|
value: 'Kısıtlı ürün bulundu',
|
|
91
97
|
},
|
|
98
|
+
'Search countries': {
|
|
99
|
+
value: 'Ülkeleri ara',
|
|
100
|
+
},
|
|
92
101
|
'See duty and tax thresholds': {
|
|
93
102
|
value: 'Vergi ve gümrük vergisi limitlerini gör',
|
|
94
103
|
},
|
|
104
|
+
'Select a country': {
|
|
105
|
+
value: 'Bir ülke seç',
|
|
106
|
+
},
|
|
107
|
+
'Select a language': {
|
|
108
|
+
value: 'Bir dil seçin',
|
|
109
|
+
},
|
|
95
110
|
Shipping: {
|
|
96
111
|
value: 'Kargo',
|
|
97
112
|
},
|
|
113
|
+
'Shipping address same as billing': {
|
|
114
|
+
value: 'Teslimat adresi fatura adresi ile aynı',
|
|
115
|
+
},
|
|
98
116
|
'Shipping information': {
|
|
99
117
|
value: 'Kargo bilgileri',
|
|
100
118
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsVietnamese = {
|
|
|
8
8
|
Back: {
|
|
9
9
|
value: 'Quay lại',
|
|
10
10
|
},
|
|
11
|
+
'Billing address': {
|
|
12
|
+
value: 'Địa chỉ thanh toán',
|
|
13
|
+
},
|
|
11
14
|
'Cart subtotal': {
|
|
12
15
|
value: 'Tổng giỏ hàng',
|
|
13
16
|
},
|
|
@@ -56,6 +59,9 @@ export const stringsVietnamese = {
|
|
|
56
59
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
57
60
|
value: 'Không tìm thấy phương thức vận chuyển - hãy thử chỉnh sửa địa chỉ của bạn hoặc liên hệ hỗ trợ nếu lỗi vẫn tiếp tục',
|
|
58
61
|
},
|
|
62
|
+
'Nothing due at the door': {
|
|
63
|
+
value: 'Không có gì phải trả tại cửa',
|
|
64
|
+
},
|
|
59
65
|
'Order is over the de minimis threshold for both duty and tax': {
|
|
60
66
|
value: 'Đơn hàng vượt ngưỡng miễn thuế cho cả thuế nhập khẩu và thuế',
|
|
61
67
|
},
|
|
@@ -89,12 +95,24 @@ export const stringsVietnamese = {
|
|
|
89
95
|
'Restricted items found': {
|
|
90
96
|
value: 'Tìm thấy hàng hóa bị hạn chế',
|
|
91
97
|
},
|
|
98
|
+
'Search countries': {
|
|
99
|
+
value: 'Tìm kiếm quốc gia',
|
|
100
|
+
},
|
|
92
101
|
'See duty and tax thresholds': {
|
|
93
102
|
value: 'Xem ngưỡng thuế nhập khẩu và thuế',
|
|
94
103
|
},
|
|
104
|
+
'Select a country': {
|
|
105
|
+
value: 'Chọn một quốc gia',
|
|
106
|
+
},
|
|
107
|
+
'Select a language': {
|
|
108
|
+
value: 'Chọn một ngôn ngữ',
|
|
109
|
+
},
|
|
95
110
|
Shipping: {
|
|
96
111
|
value: 'Vận chuyển',
|
|
97
112
|
},
|
|
113
|
+
'Shipping address same as billing': {
|
|
114
|
+
value: 'Địa chỉ giao hàng giống hệt địa chỉ thanh toán',
|
|
115
|
+
},
|
|
98
116
|
'Shipping information': {
|
|
99
117
|
value: 'Thông tin vận chuyển',
|
|
100
118
|
},
|
|
@@ -13,13 +13,46 @@ export class ZonosAddress {
|
|
|
13
13
|
this.titleText = undefined;
|
|
14
14
|
this.defaultAddress = null;
|
|
15
15
|
this.stripe = window.Zonos.stripe;
|
|
16
|
-
this.isDirtyAddress =
|
|
17
|
-
|
|
16
|
+
this.isDirtyAddress = false;
|
|
17
|
+
}
|
|
18
|
+
getStripeAddressInstance() {
|
|
19
|
+
if (this.type === 'billing') {
|
|
20
|
+
return {
|
|
21
|
+
stripeAddressElement: stripeStore.stripeBillingAddressElement,
|
|
22
|
+
stripeAddressEventData: stripeStore.stripeBillingAddressEventData,
|
|
23
|
+
stripeElements: stripeStore.stripeElementsForBillingAddress,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
stripeAddressElement: stripeStore.stripeAddressElement,
|
|
28
|
+
stripeAddressEventData: stripeStore.stripeAddressEventData,
|
|
29
|
+
stripeElements: stripeStore.stripeElements,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
updateAddressEventData({ event, type, }) {
|
|
33
|
+
switch (type) {
|
|
34
|
+
case 'billing':
|
|
35
|
+
stripeStore.stripeBillingAddressEventData = event;
|
|
36
|
+
break;
|
|
37
|
+
default:
|
|
38
|
+
stripeStore.stripeAddressEventData = event;
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
// only prefetch if the address type is shipping
|
|
42
|
+
void stripeStorePrefetchLandedCost();
|
|
43
|
+
}
|
|
44
|
+
updateAddressElement({ stripeAddressElement, type, }) {
|
|
45
|
+
if (type === 'shipping') {
|
|
46
|
+
stripeStore.stripeAddressElement = stripeAddressElement;
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
stripeStore.stripeBillingAddressElement = stripeAddressElement;
|
|
18
50
|
}
|
|
19
51
|
async watchInitStripe() {
|
|
20
|
-
var _a, _b
|
|
52
|
+
var _a, _b;
|
|
21
53
|
this.stripe = window.Zonos.stripe;
|
|
22
|
-
|
|
54
|
+
const { stripeAddressEventData, stripeElements } = this.getStripeAddressInstance();
|
|
55
|
+
if (!this.stripe || !stripeElements) {
|
|
23
56
|
logError("Stripe is not initialized. Couldn't load stripe element.");
|
|
24
57
|
return;
|
|
25
58
|
}
|
|
@@ -30,21 +63,19 @@ export class ZonosAddress {
|
|
|
30
63
|
(_b = this.defaultAddress) === null || _b === void 0 ? true : delete _b.phone;
|
|
31
64
|
}
|
|
32
65
|
const shippableCountries = localizationStore.shippingZoneCountries;
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
mode: 'automatic',
|
|
39
|
-
},
|
|
66
|
+
const shippingZone = shippableCountries
|
|
67
|
+
? Object.values(shippableCountries).map(country => country.code)
|
|
68
|
+
: [];
|
|
69
|
+
const addressElement = stripeElements.create('address', {
|
|
70
|
+
allowedCountries: this.type === 'shipping' ? shippingZone : [],
|
|
40
71
|
contacts: this.defaultAddress ? [this.defaultAddress] : [],
|
|
41
72
|
defaultValues: {
|
|
42
|
-
address: Object.assign(Object.assign({},
|
|
73
|
+
address: Object.assign(Object.assign({}, stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address), { country: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country) ||
|
|
43
74
|
localizationStore.selectedCountryCode ||
|
|
44
75
|
'AL' }),
|
|
45
|
-
firstName:
|
|
46
|
-
lastName:
|
|
47
|
-
phone:
|
|
76
|
+
firstName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.firstName,
|
|
77
|
+
lastName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.lastName,
|
|
78
|
+
phone: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.phone,
|
|
48
79
|
},
|
|
49
80
|
display: {
|
|
50
81
|
name: 'split',
|
|
@@ -72,31 +103,39 @@ export class ZonosAddress {
|
|
|
72
103
|
}
|
|
73
104
|
else {
|
|
74
105
|
// scroll into the end of the page so the address placeholder won't be hidden
|
|
75
|
-
const yOffset = 100;
|
|
106
|
+
const yOffset = this.type === 'shipping' ? 100 : 600;
|
|
76
107
|
const parentWrapper = this.el.closest('.zonos--group');
|
|
77
108
|
const y = this.el.getBoundingClientRect().top + yOffset;
|
|
78
109
|
parentWrapper === null || parentWrapper === void 0 ? void 0 : parentWrapper.scrollTo({ behavior: 'smooth', top: y });
|
|
79
110
|
}
|
|
80
|
-
},
|
|
111
|
+
}, 600);
|
|
81
112
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
113
|
+
this.updateAddressEventData({
|
|
114
|
+
event: Object.assign(Object.assign({}, event), { elementMode: this.type, elementType: 'address', empty: false, value: Object.assign(Object.assign({}, eventValue), { firstName: eventValue.firstName || eventValue.name.split(' ')[0], lastName: eventValue.lastName || eventValue.name.split(' ').pop() }) }),
|
|
115
|
+
type: this.type,
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
this.updateAddressElement({
|
|
119
|
+
stripeAddressElement: addressElement,
|
|
120
|
+
type: this.type,
|
|
85
121
|
});
|
|
86
|
-
stripeStore.stripeAddressElement = addressElement;
|
|
87
122
|
}
|
|
88
123
|
disconnectedCallback() {
|
|
89
|
-
var _a;
|
|
90
124
|
// destroy the stripe element when this component is removed from the DOM, so that we can re-create the new one with previous value
|
|
91
|
-
|
|
125
|
+
const stripeElement = this.getStripeAddressInstance().stripeAddressElement;
|
|
126
|
+
stripeElement === null || stripeElement === void 0 ? void 0 : stripeElement.destroy();
|
|
92
127
|
}
|
|
93
128
|
componentDidLoad() {
|
|
129
|
+
const stripeAddressEventData = this.getStripeAddressInstance().stripeAddressEventData;
|
|
130
|
+
this.isDirtyAddress =
|
|
131
|
+
!!stripeAddressEventData &&
|
|
132
|
+
stripeAddressEventData.value.address.line1.length > 0;
|
|
94
133
|
// @Watch doesn't get trigger on initial load
|
|
95
134
|
void this.watchInitStripe();
|
|
96
135
|
}
|
|
97
136
|
render() {
|
|
98
137
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
99
|
-
return (h(Host, { key: '
|
|
138
|
+
return (h(Host, { key: 'b2aa1ee3f16ae4ebcce83b599c97aa80f09dc9d3', class: "zonos--address zonos--elements" }, h("zonos-text", { key: 'e37392d0add0ab8541f78131abdf9082fd2455b4', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'd28d1908ee2f525455b0680e25cff3040093ad74', class: "zonos--address-component" })));
|
|
100
139
|
}
|
|
101
140
|
static get is() { return "zonos-address"; }
|
|
102
141
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js
CHANGED
|
@@ -36,7 +36,7 @@ export class ZonosLinkAuthentication {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'aec893e026a60bcbf81e93a3c63a842f97437dcc', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '93c2c462d3a108364d2dfbc4aeab058f87bcc7b3', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '0098e20d87cce7547fc1abf26859c0d3765407cd', class: "zonos--link-authentication-component" })));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "zonos-link-authentication"; }
|
|
42
42
|
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: 'd5b7717fa4b80da99ae6ba2d7cccbe318e091f8f', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '37bd2c2dcc59613857b9fd22d864c0d11b2a7319', class: "zonos--payment-component" })));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "zonos-payment"; }
|
|
43
43
|
static get encapsulation() { return "scoped"; }
|
|
@@ -4,10 +4,28 @@ export const prepCalculateLandedCost = () => {
|
|
|
4
4
|
// maybe we don't need email now for prefetch the landed cost
|
|
5
5
|
const stripeLinkData = stripeStore.stripeLinkEventData;
|
|
6
6
|
const stripeAddressData = stripeStore.stripeAddressEventData;
|
|
7
|
-
|
|
7
|
+
const stripeBillingAddressData = stripeStore.stripeShippingSameAsBilling
|
|
8
|
+
? stripeStore.stripeAddressEventData
|
|
9
|
+
: stripeStore.stripeBillingAddressEventData;
|
|
10
|
+
if (!(stripeAddressData === null || stripeAddressData === void 0 ? void 0 : stripeAddressData.complete) || !(stripeBillingAddressData === null || stripeBillingAddressData === void 0 ? void 0 : stripeBillingAddressData.complete)) {
|
|
8
11
|
throw new Error('Missing stripe address data');
|
|
9
12
|
}
|
|
10
13
|
return {
|
|
14
|
+
billingAddress: {
|
|
15
|
+
addressLine1: stripeBillingAddressData.value.address.line1,
|
|
16
|
+
addressLine2: stripeBillingAddressData.value.address.line2 || '',
|
|
17
|
+
city: stripeBillingAddressData.value.address.city,
|
|
18
|
+
country: stripeBillingAddressData.value.address.country,
|
|
19
|
+
postalCode: stripeBillingAddressData.value.address.postal_code,
|
|
20
|
+
state: stripeBillingAddressData.value.address.state,
|
|
21
|
+
},
|
|
22
|
+
billingContact: {
|
|
23
|
+
// firstName and lastName should be valid now since stripe only mark
|
|
24
|
+
// the address as complete when both fields are filled.
|
|
25
|
+
firstName: stripeBillingAddressData.value.firstName || '',
|
|
26
|
+
lastName: stripeBillingAddressData.value.lastName || '',
|
|
27
|
+
phone: stripeBillingAddressData.value.phone || '',
|
|
28
|
+
},
|
|
11
29
|
checkoutSessionId: cartStore.checkoutSessionId || '',
|
|
12
30
|
contact: {
|
|
13
31
|
email: (stripeLinkData === null || stripeLinkData === void 0 ? void 0 : stripeLinkData.value.email) || '',
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { prepCalculateLandedCost } from "./prepCalculateLandedCost";
|
|
2
2
|
import { handleFetch } from "../handleFetch";
|
|
3
3
|
export const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
4
|
-
var _a;
|
|
4
|
+
var _a, _b, _c, _d;
|
|
5
5
|
const data = prepCalculateLandedCost();
|
|
6
|
-
const landedCost = await buildLandedCost(
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const landedCost = await buildLandedCost({
|
|
7
|
+
billingAddress: data.billingAddress,
|
|
8
|
+
billingContact: data.billingContact,
|
|
9
|
+
checkoutSessionId: data.checkoutSessionId,
|
|
10
|
+
contact: data.contact,
|
|
11
|
+
shippingAddress: data.shippingAddress,
|
|
12
|
+
});
|
|
13
|
+
if (!landedCost || ((_a = landedCost.errors) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
14
|
+
throw new Error(`Failed to build landed cost: ${((_c = (_b = landedCost === null || landedCost === void 0 ? void 0 : landedCost.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.message) || 'Unknown error'}`);
|
|
9
15
|
}
|
|
10
16
|
// Validate the landed cost object to make sure the returned value from buildLandedCost has a valid schema
|
|
11
17
|
const { errors, json } = await handleFetch(`${process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL}/api/zonos-elements/validate-landed-cost`, {
|
|
@@ -16,7 +22,7 @@ export const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
|
16
22
|
method: 'POST',
|
|
17
23
|
});
|
|
18
24
|
if (!json || errors.length) {
|
|
19
|
-
throw new Error(`Invalid landed cost object: ${((
|
|
25
|
+
throw new Error(`Invalid landed cost object: ${((_d = errors.find(Boolean)) === null || _d === void 0 ? void 0 : _d.message) || 'Unknown error'}`);
|
|
20
26
|
}
|
|
21
27
|
return landedCost;
|
|
22
28
|
};
|
|
@@ -4,10 +4,14 @@ import { zonosStore } from "../store/zonosStore";
|
|
|
4
4
|
* @param overrideBorderStyle
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
|
-
export const getBorderRadius = (overrideBorderStyle
|
|
7
|
+
export const getBorderRadius = (overrideBorderStyle,
|
|
8
|
+
/**
|
|
9
|
+
* This is the custom round radius for component that 10px is too much for them
|
|
10
|
+
*/
|
|
11
|
+
customRoundRadius = '10px') => {
|
|
8
12
|
if (overrideBorderStyle) {
|
|
9
13
|
// If the override is set, use that, otherwise use the default radius style
|
|
10
|
-
return overrideBorderStyle === 'SHARP' ? '0px' :
|
|
14
|
+
return overrideBorderStyle === 'SHARP' ? '0px' : customRoundRadius;
|
|
11
15
|
}
|
|
12
|
-
return zonosStore.appearance.style === 'SHARP' ? '0px' :
|
|
16
|
+
return zonosStore.appearance.style === 'SHARP' ? '0px' : customRoundRadius;
|
|
13
17
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const languages = [
|
|
2
|
+
{ code: 'en', label: 'English', translatedLabel: 'English' },
|
|
3
|
+
{ code: 'es', label: 'Spanish', translatedLabel: 'Español' },
|
|
4
|
+
{ code: 'pt', label: 'Portuguese', translatedLabel: 'Português' },
|
|
5
|
+
{ code: 'ru', label: 'Russian', translatedLabel: 'русский' },
|
|
6
|
+
{ code: 'da', label: 'Danish', translatedLabel: 'dansk' },
|
|
7
|
+
{ code: 'it', label: 'Italian', translatedLabel: 'Italiano' },
|
|
8
|
+
{ code: 'pl', label: 'Polish', translatedLabel: 'Polskie' },
|
|
9
|
+
{ code: 'ar', label: 'Arabic', translatedLabel: 'عربى' },
|
|
10
|
+
{ code: 'de', label: 'German', translatedLabel: 'Deutsche' },
|
|
11
|
+
{ code: 'ja', label: 'Japanese', translatedLabel: '日本語' },
|
|
12
|
+
{ code: 'no', label: 'Norwegian', translatedLabel: 'norsk' },
|
|
13
|
+
{ code: 'vi', label: 'Vietnamese', translatedLabel: 'Tiếng Việt' },
|
|
14
|
+
{ code: 'tr', label: 'Turkish', translatedLabel: 'Türk' },
|
|
15
|
+
{ code: 'he', label: 'Hebrew', translatedLabel: 'עִברִית' },
|
|
16
|
+
{ code: 'fr', label: 'French', translatedLabel: 'Français' },
|
|
17
|
+
{ code: 'nl', label: 'Dutch', translatedLabel: 'Nederlands' },
|
|
18
|
+
{ code: 'zh', label: 'Chinese', translatedLabel: '中文' },
|
|
19
|
+
{ code: 'sv', label: 'Swedish', translatedLabel: 'svenska' },
|
|
20
|
+
{ code: 'id', label: 'Indonesian', translatedLabel: 'bahasa Indonesia' },
|
|
21
|
+
{ code: 'ko', label: 'Korean', translatedLabel: '한국어' },
|
|
22
|
+
];
|
|
@@ -1016,6 +1016,7 @@ export const emailTemplateType = {
|
|
|
1016
1016
|
AbandonedCart: 'ABANDONED_CART',
|
|
1017
1017
|
OrderCanceled: 'ORDER_CANCELED',
|
|
1018
1018
|
OrderConfirmation: 'ORDER_CONFIRMATION',
|
|
1019
|
+
OrderReceipt: 'ORDER_RECEIPT',
|
|
1019
1020
|
OrderShipped: 'ORDER_SHIPPED',
|
|
1020
1021
|
Unknown: 'UNKNOWN',
|
|
1021
1022
|
};
|
|
@@ -1208,6 +1209,16 @@ export const invoiceLanguageCode = {
|
|
|
1208
1209
|
ZhHk: 'ZH_HK',
|
|
1209
1210
|
ZhTw: 'ZH_TW',
|
|
1210
1211
|
};
|
|
1212
|
+
export const invoiceLineRecordBehaviorCode = {
|
|
1213
|
+
Finalize: 'FINALIZE',
|
|
1214
|
+
Pending: 'PENDING',
|
|
1215
|
+
};
|
|
1216
|
+
export const invoiceLineRecordStatusCode = {
|
|
1217
|
+
Failed: 'FAILED',
|
|
1218
|
+
Pending: 'PENDING',
|
|
1219
|
+
Processed: 'PROCESSED',
|
|
1220
|
+
Voided: 'VOIDED',
|
|
1221
|
+
};
|
|
1211
1222
|
export const invoiceStatus = {
|
|
1212
1223
|
Received: 'RECEIVED',
|
|
1213
1224
|
Reconciled: 'RECONCILED',
|
|
@@ -1312,7 +1323,9 @@ export const landedCostFeeType = {
|
|
|
1312
1323
|
Other: 'OTHER',
|
|
1313
1324
|
Shipping: 'SHIPPING',
|
|
1314
1325
|
Tax: 'TAX',
|
|
1326
|
+
ZonosAccessFee: 'ZONOS_ACCESS_FEE',
|
|
1315
1327
|
ZonosLandedCostGuarantee: 'ZONOS_LANDED_COST_GUARANTEE',
|
|
1328
|
+
ZonosMerchantFee: 'ZONOS_MERCHANT_FEE',
|
|
1316
1329
|
};
|
|
1317
1330
|
export const landedCostGuaranteeCode = {
|
|
1318
1331
|
InclusivePrice: 'INCLUSIVE_PRICE',
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
2
2
|
import "./global.d";
|
|
3
3
|
export * from '../components.d';
|
|
4
|
-
export * from '../components/store/checkout/cart';
|
|
5
4
|
export * from './checkout/CheckoutConfig';
|
|
6
5
|
export * from './hello/HelloConfig';
|
|
7
6
|
export * from './JsonError';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const languages = [
|
|
2
|
+
{ code: 'en', label: 'English', translatedLabel: 'English' },
|
|
3
|
+
{ code: 'es', label: 'Spanish', translatedLabel: 'Español' },
|
|
4
|
+
{ code: 'pt', label: 'Portuguese', translatedLabel: 'Português' },
|
|
5
|
+
{ code: 'ru', label: 'Russian', translatedLabel: 'русский' },
|
|
6
|
+
{ code: 'da', label: 'Danish', translatedLabel: 'dansk' },
|
|
7
|
+
{ code: 'it', label: 'Italian', translatedLabel: 'Italiano' },
|
|
8
|
+
{ code: 'pl', label: 'Polish', translatedLabel: 'Polskie' },
|
|
9
|
+
{ code: 'ar', label: 'Arabic', translatedLabel: 'عربى' },
|
|
10
|
+
{ code: 'de', label: 'German', translatedLabel: 'Deutsche' },
|
|
11
|
+
{ code: 'ja', label: 'Japanese', translatedLabel: '日本語' },
|
|
12
|
+
{ code: 'no', label: 'Norwegian', translatedLabel: 'norsk' },
|
|
13
|
+
{ code: 'vi', label: 'Vietnamese', translatedLabel: 'Tiếng Việt' },
|
|
14
|
+
{ code: 'tr', label: 'Turkish', translatedLabel: 'Türk' },
|
|
15
|
+
{ code: 'he', label: 'Hebrew', translatedLabel: 'עִברִית' },
|
|
16
|
+
{ code: 'fr', label: 'French', translatedLabel: 'Français' },
|
|
17
|
+
{ code: 'nl', label: 'Dutch', translatedLabel: 'Nederlands' },
|
|
18
|
+
{ code: 'zh', label: 'Chinese', translatedLabel: '中文' },
|
|
19
|
+
{ code: 'sv', label: 'Swedish', translatedLabel: 'svenska' },
|
|
20
|
+
{ code: 'id', label: 'Indonesian', translatedLabel: 'bahasa Indonesia' },
|
|
21
|
+
{ code: 'ko', label: 'Korean', translatedLabel: '한국어' },
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
export { languages as l };
|
|
@@ -5,12 +5,16 @@ import { z as zonosStore } from './zonosStore.js';
|
|
|
5
5
|
* @param overrideBorderStyle
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
const getBorderRadius = (overrideBorderStyle
|
|
8
|
+
const getBorderRadius = (overrideBorderStyle,
|
|
9
|
+
/**
|
|
10
|
+
* This is the custom round radius for component that 10px is too much for them
|
|
11
|
+
*/
|
|
12
|
+
customRoundRadius = '10px') => {
|
|
9
13
|
if (overrideBorderStyle) {
|
|
10
14
|
// If the override is set, use that, otherwise use the default radius style
|
|
11
|
-
return overrideBorderStyle === 'SHARP' ? '0px' :
|
|
15
|
+
return overrideBorderStyle === 'SHARP' ? '0px' : customRoundRadius;
|
|
12
16
|
}
|
|
13
|
-
return zonosStore.appearance.style === 'SHARP' ? '0px' :
|
|
17
|
+
return zonosStore.appearance.style === 'SHARP' ? '0px' : customRoundRadius;
|
|
14
18
|
};
|
|
15
19
|
|
|
16
20
|
export { getBorderRadius as g };
|
package/dist/components/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
|
-
export { c as cartStore, a as cartStoreApplySubtotals, b as cartStoreGetShippingTransitInfo, d as cartStoreNextStep, e as cartStorePreviousStep, f as cartStoreReCalculateTotal, g as cartStoreReset, h as cartStoreUpdateItems, i as cartStoreUpdateSelectedShippingOption, j as cartStoreUpdateToErrorState } from './cart.js';
|