@zonos/elements 1.3.15-alpha.3 → 1.3.16-alpha.0
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/RemoveIcon-081ac073.js +5 -0
- package/dist/cjs/{cart-1b1d39af.js → cart-db549f04.js} +976 -138
- package/dist/cjs/containsNonLatinChars-2be5129b.js +24 -0
- package/dist/cjs/{getBorderRadius-c8cc2bb3.js → getBorderRadius-44b3eca1.js} +4 -6
- package/dist/cjs/index-654a6001.js +1361 -0
- package/dist/cjs/isCheckoutMobile-f491ca7c.js +8 -0
- package/dist/cjs/{isColorVariable-fff5e469.js → isColorVariable-6f5a9608.js} +2 -2
- package/dist/cjs/{isDarkColor-f5473002.js → isDarkColor-01f45d3f.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{submitGtag-ab287a34.js → submitGtag-fd8acad5.js} +21 -2
- package/dist/cjs/zonos-address_8.cjs.entry.js +642 -0
- package/dist/cjs/zonos-badge_2.cjs.entry.js +9 -9
- package/dist/cjs/zonos-banner.cjs.entry.js +5 -5
- package/dist/cjs/zonos-button_3.cjs.entry.js +192 -0
- package/dist/cjs/zonos-card_2.cjs.entry.js +12 -12
- package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_9.cjs.entry.js} +150 -124
- package/dist/cjs/zonos-checkout.cjs.entry.js +20 -19
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +16 -16
- package/dist/cjs/zonos-elements.cjs.js +10 -10
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -9
- package/dist/cjs/zonos-hello.cjs.entry.js +6 -6
- package/dist/cjs/zonos-input.cjs.entry.js +57 -0
- package/dist/cjs/zonos-link.cjs.entry.js +3 -3
- package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
- package/dist/cjs/zonos-notification.cjs.entry.js +5 -5
- package/dist/cjs/zonos-payment.cjs.entry.js +6 -6
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +7 -7
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +10 -8
- package/dist/cjs/zonos-text.cjs.entry.js +6 -5
- package/dist/cjs/{zonosStore-aee974e0.js → zonosStore-d8bb0bda.js} +1 -1
- package/dist/collection/__mocks__/vercel-app/zonos-hello.entry.js +1 -1
- package/dist/collection/__mocks__/zonos-url/zonos-hello.entry.js +1 -1
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/checkout/zonos-checkout/assets/LeftArrow.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/assets/RemoveIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.css +62 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +80 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.css +59 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +148 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.css +115 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +429 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.css +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/assets/RemoveIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/assets/SuccessIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +5 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/chevronDownIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/globe.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/zonosIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +8 -8
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +10 -10
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +7 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +135 -20
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/assets/ChevronDownIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/assets/ChevronUpIcon.svg +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +1 -1
- package/dist/collection/components/common/component-template/zonos-link/zonos-link.css +4 -4
- package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.css +30 -30
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-banner/zonos-banner.css +10 -10
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +2 -2
- package/dist/collection/components/common/zonos-button/zonos-button.css +63 -62
- package/dist/collection/components/common/zonos-button/zonos-button.js +17 -8
- package/dist/collection/components/common/zonos-card/zonos-card.css +7 -7
- package/dist/collection/components/common/zonos-card/zonos-card.js +3 -3
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.css +4 -3
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +26 -8
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +4 -4
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +8 -8
- 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.css +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 +14 -14
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +6 -4
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +1 -1
- package/dist/collection/components/common/zonos-input/zonos-input.css +176 -0
- package/dist/collection/components/common/zonos-input/zonos-input.js +193 -0
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.css +2 -2
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-notification/zonos-notification.css +4 -4
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +2 -2
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.css +1 -1
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.css +7 -7
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +5 -3
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.css +14 -14
- package/dist/collection/components/common/zonos-text/zonos-text.css +7 -7
- package/dist/collection/components/common/zonos-text/zonos-text.js +2 -1
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.css +3 -3
- 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/zonos-hello.css +30 -30
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/chevronDownIcon.svg +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/globe.svg +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/zonosIcon.svg +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +385 -378
- 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.css +11 -11
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
- package/dist/collection/components/main/zonos-controller.js +2 -2
- package/dist/collection/components/store/checkout/stripe.js +153 -14
- package/dist/collection/components/store/translationStore/strings.arabic.js +36 -6
- package/dist/collection/components/store/translationStore/strings.base.js +36 -6
- package/dist/collection/components/store/translationStore/strings.chinese.js +36 -6
- package/dist/collection/components/store/translationStore/strings.danish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.dutch.js +36 -6
- package/dist/collection/components/store/translationStore/strings.french.js +36 -6
- package/dist/collection/components/store/translationStore/strings.german.js +36 -6
- package/dist/collection/components/store/translationStore/strings.hebrew.js +36 -6
- package/dist/collection/components/store/translationStore/strings.indonesian.js +36 -6
- package/dist/collection/components/store/translationStore/strings.italian.js +36 -6
- package/dist/collection/components/store/translationStore/strings.japanese.js +36 -6
- package/dist/collection/components/store/translationStore/strings.korean.js +36 -6
- package/dist/collection/components/store/translationStore/strings.norwegian.js +36 -6
- package/dist/collection/components/store/translationStore/strings.polish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.portuguese.js +36 -6
- package/dist/collection/components/store/translationStore/strings.russian.js +36 -6
- package/dist/collection/components/store/translationStore/strings.spanish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.swedish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.turkish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +36 -6
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +3 -71
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +29 -5
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/checkout/buildTranslateRequestBody.js +98 -0
- package/dist/collection/components/utils/containsNonLatinChars.js +10 -8
- package/dist/collection/components/utils/getBorderRadius.js +3 -5
- package/dist/collection/components/utils/getButtonTheme.js +1 -1
- package/dist/collection/components/utils/isColorVariable.js +2 -2
- package/dist/collection/styles/stripe/defaultVariable.js +2 -2
- package/dist/collection/types/checkout/TranslatedText.js +1 -0
- package/dist/collection/types/checkout/api/ValidateAddressRequest.js +1 -0
- package/dist/components/containsNonLatinChars.js +21 -0
- package/dist/components/getBorderRadius.js +3 -5
- package/dist/components/isColorVariable.js +2 -2
- package/dist/components/stripe.js +255 -4545
- package/dist/components/trackConversionEvent.js +1 -1
- package/dist/components/translationStore.js +5131 -0
- package/dist/components/zonos-address-display.d.ts +11 -0
- package/dist/components/zonos-address-display.js +6 -0
- package/dist/components/zonos-address-display2.js +64 -0
- package/dist/components/zonos-address-form.d.ts +11 -0
- package/dist/components/zonos-address-form.js +6 -0
- package/dist/components/zonos-address-form2.js +84 -0
- package/dist/components/zonos-address-update-dialog.d.ts +11 -0
- package/dist/components/zonos-address-update-dialog.js +6 -0
- package/dist/components/zonos-address-update-dialog2.js +264 -0
- package/dist/components/zonos-address2.js +3 -93
- package/dist/components/zonos-badge2.js +4 -4
- package/dist/components/zonos-banner2.js +3 -3
- package/dist/components/zonos-button2.js +19 -10
- package/dist/components/zonos-card2.js +4 -4
- package/dist/components/zonos-cart-items2.js +2 -2
- package/dist/components/zonos-cart-subtotal2.js +3 -2
- package/dist/components/zonos-checkbox2.js +19 -10
- package/dist/components/zonos-checkout-finish2.js +29 -9
- package/dist/components/zonos-checkout-footer2.js +5 -5
- package/dist/components/zonos-checkout-payment2.js +3 -2
- package/dist/components/zonos-checkout-progress-tabs2.js +6 -5
- package/dist/components/zonos-checkout.js +73 -43
- package/dist/components/zonos-collapse2.js +2 -2
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +2 -2
- package/dist/components/zonos-country-select2.js +3 -3
- package/dist/components/zonos-custom-message2.js +3 -3
- package/dist/components/zonos-customer-info2.js +171 -30
- package/dist/components/zonos-dialog2.js +7 -5
- package/dist/components/zonos-hello-dialog-footer2.js +5 -5
- package/dist/components/zonos-hello-dialog2.js +6 -5
- package/dist/components/zonos-hello.js +3 -2
- package/dist/components/zonos-icon2.js +1 -1
- package/dist/components/zonos-input.d.ts +11 -0
- package/dist/components/zonos-input.js +6 -0
- package/dist/components/zonos-input2.js +78 -0
- package/dist/components/zonos-language-select2.js +5 -4
- package/dist/components/zonos-link-authentication2.js +12 -5
- package/dist/components/zonos-link.js +2 -2
- package/dist/components/zonos-logo.js +2 -2
- package/dist/components/zonos-notification2.js +3 -3
- package/dist/components/zonos-payment2.js +1 -1
- package/dist/components/zonos-review2.js +5 -4
- package/dist/components/zonos-select-dialog-header2.js +3 -3
- package/dist/components/zonos-shipping-rich-radio2.js +6 -4
- package/dist/components/zonos-shipping2.js +4 -3
- package/dist/components/zonos-spinner2.js +1 -1
- package/dist/components/zonos-text2.js +3 -2
- package/dist/components/zonos-tooltip2.js +3 -3
- package/dist/components/zonos-v-stack2.js +2 -2
- package/dist/esm/RemoveIcon-9dc5dd1a.js +3 -0
- package/dist/esm/{cart-10bcd2e0.js → cart-462e89a6.js} +976 -139
- package/dist/esm/containsNonLatinChars-2d8810c3.js +21 -0
- package/dist/esm/{getBorderRadius-8129b0cb.js → getBorderRadius-567f1786.js} +4 -6
- package/dist/esm/index-e063389c.js +1328 -0
- package/dist/esm/isCheckoutMobile-8846dccb.js +6 -0
- package/dist/esm/{isColorVariable-fbf2d80d.js → isColorVariable-82457bef.js} +2 -2
- package/dist/esm/{isDarkColor-7a6d2d14.js → isDarkColor-7f62035a.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{submitGtag-84886899.js → submitGtag-ac7c3c89.js} +21 -3
- package/dist/esm/zonos-address_8.entry.js +631 -0
- package/dist/esm/zonos-badge_2.entry.js +9 -9
- package/dist/esm/zonos-banner.entry.js +5 -5
- package/dist/esm/zonos-button_3.entry.js +186 -0
- package/dist/esm/zonos-card_2.entry.js +12 -12
- package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_9.entry.js} +146 -119
- package/dist/esm/zonos-checkout.entry.js +15 -14
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +6 -6
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/zonos-country-select_3.entry.js +16 -16
- package/dist/esm/zonos-elements.js +11 -11
- package/dist/esm/zonos-hello-dialog.entry.js +9 -9
- package/dist/esm/zonos-hello.entry.js +6 -6
- package/dist/esm/zonos-input.entry.js +53 -0
- package/dist/esm/zonos-link.entry.js +3 -3
- package/dist/esm/zonos-logo.entry.js +4 -4
- package/dist/esm/zonos-notification.entry.js +5 -5
- package/dist/esm/zonos-payment.entry.js +6 -6
- package/dist/esm/zonos-select-dialog-header_2.entry.js +7 -7
- package/dist/esm/zonos-shipping-rich-radio.entry.js +10 -8
- package/dist/esm/zonos-text.entry.js +6 -5
- package/dist/esm/{zonosStore-f3eef64b.js → zonosStore-33ff08ff.js} +1 -1
- package/dist/esm-es5/RemoveIcon-9dc5dd1a.js +1 -0
- package/dist/esm-es5/cart-462e89a6.js +1 -0
- package/dist/esm-es5/containsNonLatinChars-2d8810c3.js +1 -0
- package/dist/esm-es5/getBorderRadius-567f1786.js +1 -0
- package/dist/esm-es5/index-e063389c.js +2 -0
- package/dist/esm-es5/isCheckoutMobile-8846dccb.js +1 -0
- package/dist/esm-es5/isColorVariable-82457bef.js +1 -0
- package/dist/esm-es5/{isDarkColor-7a6d2d14.js → isDarkColor-7f62035a.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/submitGtag-ac7c3c89.js +1 -0
- package/dist/esm-es5/zonos-address_8.entry.js +1 -0
- 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 -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 -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 -0
- 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-f3eef64b.js → zonosStore-33ff08ff.js} +1 -1
- package/dist/scripts/loadStripe.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/stripe.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-address-update-dialog/zonos-address-display/zonos-address-display.d.ts +12 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.d.ts +28 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.d.ts +96 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +22 -2
- package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +1 -0
- package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +0 -3
- package/dist/types/components/common/zonos-input/zonos-input.d.ts +35 -0
- package/dist/types/components/store/checkout/stripe.d.ts +25 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.base.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.danish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.french.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.german.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.italian.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.korean.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.polish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.russian.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +35 -5
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +2 -10
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +4 -0
- 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/checkout/buildTranslateRequestBody.d.ts +26 -0
- package/dist/types/components/utils/containsNonLatinChars.d.ts +1 -0
- package/dist/types/components/utils/getBorderRadius.d.ts +7 -1
- package/dist/types/components.d.ts +308 -6
- package/dist/types/types/checkout/TranslatedText.d.ts +23 -0
- package/dist/types/types/checkout/api/ValidateAddressRequest.d.ts +20 -0
- package/dist/types/types/generated/graphql.customer.types.d.ts +2 -0
- package/dist/types/types/generated/graphql.customer.types.ts +2 -0
- package/dist/zonos-elements/assets/ChevronDownIcon.svg +1 -1
- package/dist/zonos-elements/assets/ChevronUpIcon.svg +1 -1
- package/dist/zonos-elements/assets/LeftArrow.svg +1 -1
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/assets/SuccessIcon.svg +1 -1
- package/dist/zonos-elements/p-04df7975.entry.js +1 -0
- package/dist/zonos-elements/p-08e7107d.js +1 -0
- package/dist/zonos-elements/p-0c64dbbb.js +1 -0
- package/dist/zonos-elements/{p-bc3a0f7c.entry.js → p-11f1b78c.entry.js} +1 -1
- package/dist/zonos-elements/p-13ddaf31.js +2 -0
- package/dist/zonos-elements/p-154aaf95.system.js +1 -0
- package/dist/zonos-elements/p-163ff5b5.system.js +2 -0
- package/dist/zonos-elements/p-17e265c3.system.entry.js +1 -0
- package/dist/zonos-elements/p-2670438c.system.js +1 -0
- package/dist/zonos-elements/p-2770ba48.system.js +1 -0
- package/dist/zonos-elements/p-305f27c7.entry.js +1 -0
- package/dist/zonos-elements/p-34d0ef7a.system.entry.js +1 -0
- package/dist/zonos-elements/p-3638e2ed.entry.js +1 -0
- package/dist/zonos-elements/p-36a461a6.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1a5f8df7.entry.js → p-3d8667a7.entry.js} +1 -1
- package/dist/zonos-elements/p-4a107b6f.system.js +1 -0
- package/dist/zonos-elements/p-4dca5484.system.entry.js +1 -0
- package/dist/zonos-elements/p-5120a57c.entry.js +1 -0
- package/dist/zonos-elements/p-54004793.system.entry.js +1 -0
- package/dist/zonos-elements/p-578f0aad.system.js +1 -0
- package/dist/zonos-elements/p-582d8b27.entry.js +1 -0
- package/dist/zonos-elements/p-5d993965.js +1 -0
- package/dist/zonos-elements/{p-262b8e1e.system.entry.js → p-5f9c066d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-66eb66d1.js +1 -0
- package/dist/zonos-elements/{p-95c864ca.system.entry.js → p-679877b1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6e9b72e4.entry.js +1 -0
- package/dist/zonos-elements/p-726e2268.system.entry.js +1 -0
- package/dist/zonos-elements/{p-fc4da55c.system.js → p-771fbeb3.system.js} +1 -1
- package/dist/zonos-elements/p-79f3c4f5.system.js +1 -0
- package/dist/zonos-elements/p-81a54668.js +1 -0
- package/dist/zonos-elements/p-835c8928.entry.js +1 -0
- package/dist/zonos-elements/p-83cc2936.js +1 -0
- package/dist/zonos-elements/p-83fecb2a.entry.js +1 -0
- package/dist/zonos-elements/{p-520e8e63.system.js → p-87badea9.system.js} +1 -1
- package/dist/zonos-elements/{p-d01576d7.js → p-909a331c.js} +1 -1
- package/dist/zonos-elements/p-94d6af4b.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5ee8a685.entry.js → p-9b8ae241.entry.js} +1 -1
- package/dist/zonos-elements/p-9ea84657.system.entry.js +1 -0
- package/dist/zonos-elements/{p-24fee841.entry.js → p-9ec93319.entry.js} +1 -1
- package/dist/zonos-elements/p-a6d7ac46.js +1 -0
- package/dist/zonos-elements/{p-2a99c8b5.system.entry.js → p-a6eeb4bd.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a889c1bc.entry.js +1 -0
- package/dist/zonos-elements/p-ab7ac0db.system.entry.js +1 -0
- package/dist/zonos-elements/p-ad088d46.system.entry.js +1 -0
- package/dist/zonos-elements/p-aed0098c.system.js +1 -0
- package/dist/zonos-elements/p-b98bdbcc.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d3772fd3.entry.js → p-baee62a4.entry.js} +1 -1
- package/dist/zonos-elements/{p-eff12c31.system.entry.js → p-bf32179a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ca71b681.system.entry.js +1 -0
- package/dist/zonos-elements/p-d7acc81c.entry.js +1 -0
- package/dist/zonos-elements/p-dbdebdae.entry.js +1 -0
- package/dist/zonos-elements/p-df192668.system.js +1 -0
- package/dist/zonos-elements/{p-70ede197.system.entry.js → p-df24d548.system.entry.js} +1 -1
- package/dist/zonos-elements/p-df64afdd.entry.js +1 -0
- package/dist/zonos-elements/p-e108e5ed.system.entry.js +1 -0
- package/dist/zonos-elements/p-e1b2b610.entry.js +1 -0
- package/dist/zonos-elements/{p-6743734f.entry.js → p-e7b4b756.entry.js} +1 -1
- package/dist/zonos-elements/{p-d41b5762.js → p-f1962041.js} +1 -1
- package/dist/zonos-elements/p-f71489e5.system.entry.js +1 -0
- package/dist/zonos-elements/p-fd49d864.entry.js +1 -0
- package/dist/zonos-elements/p-fd5d2fc3.system.entry.js +1 -0
- package/dist/zonos-elements/p-fe246229.system.entry.js +1 -0
- package/dist/zonos-elements/p-ff403840.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.css +17 -9
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +3 -2
- package/dist/cjs/index-3b4816ef.js +0 -2088
- package/dist/cjs/sendErrorLog-29e50f7e.js +0 -29
- package/dist/cjs/zonos-address_4.cjs.entry.js +0 -388
- package/dist/cjs/zonos-button_2.cjs.entry.js +0 -152
- package/dist/cjs/zonos-icon.cjs.entry.js +0 -39
- package/dist/components/sendErrorLog.js +0 -21
- package/dist/esm/index-0e31d804.js +0 -2055
- package/dist/esm/sendErrorLog-8642e94a.js +0 -26
- package/dist/esm/zonos-address_4.entry.js +0 -381
- package/dist/esm/zonos-button_2.entry.js +0 -147
- package/dist/esm/zonos-icon.entry.js +0 -35
- package/dist/esm-es5/cart-10bcd2e0.js +0 -1
- package/dist/esm-es5/getBorderRadius-8129b0cb.js +0 -1
- package/dist/esm-es5/index-0e31d804.js +0 -2
- package/dist/esm-es5/isColorVariable-fbf2d80d.js +0 -1
- package/dist/esm-es5/sendErrorLog-8642e94a.js +0 -1
- package/dist/esm-es5/submitGtag-84886899.js +0 -1
- package/dist/esm-es5/zonos-address_4.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-icon.entry.js +0 -1
- package/dist/scripts/insertTranslations.js +0 -1
- package/dist/zonos-elements/p-0253aeae.entry.js +0 -1
- package/dist/zonos-elements/p-031086ba.system.entry.js +0 -1
- package/dist/zonos-elements/p-1264b362.entry.js +0 -1
- package/dist/zonos-elements/p-1950dda7.entry.js +0 -1
- package/dist/zonos-elements/p-2244534c.js +0 -2
- package/dist/zonos-elements/p-2825570c.system.js +0 -2
- package/dist/zonos-elements/p-33abdb30.js +0 -1
- package/dist/zonos-elements/p-376bdf70.entry.js +0 -1
- package/dist/zonos-elements/p-3e417d7c.entry.js +0 -1
- package/dist/zonos-elements/p-450942a3.system.js +0 -1
- package/dist/zonos-elements/p-46f9c93e.system.entry.js +0 -1
- package/dist/zonos-elements/p-48a2b8b0.entry.js +0 -1
- package/dist/zonos-elements/p-49120f0e.system.entry.js +0 -1
- package/dist/zonos-elements/p-593948b5.system.entry.js +0 -1
- package/dist/zonos-elements/p-5ca09163.entry.js +0 -1
- package/dist/zonos-elements/p-5ff27485.js +0 -1
- package/dist/zonos-elements/p-6d9dbecb.system.entry.js +0 -1
- package/dist/zonos-elements/p-6e8d43de.entry.js +0 -1
- package/dist/zonos-elements/p-6f5761e8.js +0 -1
- package/dist/zonos-elements/p-7891f8d2.entry.js +0 -1
- package/dist/zonos-elements/p-78d22069.system.entry.js +0 -1
- package/dist/zonos-elements/p-8b44e558.system.js +0 -1
- package/dist/zonos-elements/p-8bc0e56a.system.entry.js +0 -1
- package/dist/zonos-elements/p-92446677.entry.js +0 -1
- package/dist/zonos-elements/p-9350d19f.entry.js +0 -1
- package/dist/zonos-elements/p-9768840a.system.entry.js +0 -1
- package/dist/zonos-elements/p-9db2f9d1.system.js +0 -1
- package/dist/zonos-elements/p-9e8f1065.system.entry.js +0 -1
- package/dist/zonos-elements/p-a0abc499.system.entry.js +0 -1
- package/dist/zonos-elements/p-a6bbf6de.system.entry.js +0 -1
- package/dist/zonos-elements/p-ae4a4634.system.entry.js +0 -1
- package/dist/zonos-elements/p-af8391bb.entry.js +0 -1
- package/dist/zonos-elements/p-b8e8330b.system.js +0 -1
- package/dist/zonos-elements/p-be022d8e.entry.js +0 -1
- package/dist/zonos-elements/p-bfa8d9a4.system.entry.js +0 -1
- package/dist/zonos-elements/p-c6170bec.system.js +0 -1
- package/dist/zonos-elements/p-d149bc5d.system.entry.js +0 -1
- package/dist/zonos-elements/p-e1ac5b2a.system.entry.js +0 -1
- package/dist/zonos-elements/p-e28ed57c.js +0 -1
- package/dist/zonos-elements/p-e705c44c.entry.js +0 -1
- package/dist/zonos-elements/p-e9fafda6.entry.js +0 -1
- package/dist/zonos-elements/p-ed2e94d2.js +0 -1
- package/dist/zonos-elements/p-f4c38bfc.system.js +0 -1
- package/dist/zonos-elements/p-fc35d717.system.entry.js +0 -1
|
@@ -20,9 +20,15 @@ export declare const stringsTurkish: {
|
|
|
20
20
|
Back: {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Billing: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Billing address': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Cancel: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Cart subtotal': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -59,6 +65,9 @@ export declare const stringsTurkish: {
|
|
|
59
65
|
'Duties, taxes, and fees': {
|
|
60
66
|
value: string;
|
|
61
67
|
};
|
|
68
|
+
Email: {
|
|
69
|
+
value: string;
|
|
70
|
+
};
|
|
62
71
|
'Error creating Checkout': {
|
|
63
72
|
value: string;
|
|
64
73
|
};
|
|
@@ -68,6 +77,9 @@ export declare const stringsTurkish: {
|
|
|
68
77
|
'Expected delivery': {
|
|
69
78
|
value: string;
|
|
70
79
|
};
|
|
80
|
+
'First name': {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
71
83
|
'Go to payment': {
|
|
72
84
|
value: string;
|
|
73
85
|
};
|
|
@@ -80,6 +92,9 @@ export declare const stringsTurkish: {
|
|
|
80
92
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
81
93
|
value: string;
|
|
82
94
|
};
|
|
95
|
+
'Last name': {
|
|
96
|
+
value: string;
|
|
97
|
+
};
|
|
83
98
|
'Missing required fields. Make sure all fields are completed.': {
|
|
84
99
|
value: string;
|
|
85
100
|
};
|
|
@@ -125,10 +140,10 @@ export declare const stringsTurkish: {
|
|
|
125
140
|
"Payment processing. We'll update you when payment is received.": {
|
|
126
141
|
value: string;
|
|
127
142
|
};
|
|
128
|
-
'
|
|
143
|
+
'Phone number': {
|
|
129
144
|
value: string;
|
|
130
145
|
};
|
|
131
|
-
'Please
|
|
146
|
+
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
132
147
|
value: string;
|
|
133
148
|
};
|
|
134
149
|
'Postal code': {
|
|
@@ -176,6 +191,9 @@ export declare const stringsTurkish: {
|
|
|
176
191
|
State: {
|
|
177
192
|
value: string;
|
|
178
193
|
};
|
|
194
|
+
'State/Province': {
|
|
195
|
+
value: string;
|
|
196
|
+
};
|
|
179
197
|
'Taxes will apply to all orders': {
|
|
180
198
|
value: string;
|
|
181
199
|
};
|
|
@@ -185,6 +203,18 @@ export declare const stringsTurkish: {
|
|
|
185
203
|
"There's been an error updating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
186
204
|
value: string;
|
|
187
205
|
};
|
|
206
|
+
'To ensure delivery all address details must be in Latin characters.': {
|
|
207
|
+
value: string;
|
|
208
|
+
};
|
|
209
|
+
'Translated address': {
|
|
210
|
+
value: string;
|
|
211
|
+
};
|
|
212
|
+
'Update address': {
|
|
213
|
+
value: string;
|
|
214
|
+
};
|
|
215
|
+
'Update your address': {
|
|
216
|
+
value: string;
|
|
217
|
+
};
|
|
188
218
|
"We couldn't complete your payment. Please verify the payment details and try again.": {
|
|
189
219
|
value: string;
|
|
190
220
|
};
|
|
@@ -197,6 +227,9 @@ export declare const stringsTurkish: {
|
|
|
197
227
|
'Welcome!': {
|
|
198
228
|
value: string;
|
|
199
229
|
};
|
|
230
|
+
'What you entered': {
|
|
231
|
+
value: string;
|
|
232
|
+
};
|
|
200
233
|
"You're all set!": {
|
|
201
234
|
value: string;
|
|
202
235
|
};
|
|
@@ -212,9 +245,6 @@ export declare const stringsTurkish: {
|
|
|
212
245
|
'duty free': {
|
|
213
246
|
value: string;
|
|
214
247
|
};
|
|
215
|
-
'only supports Latin characters (A-Z, a-z)': {
|
|
216
|
-
value: string;
|
|
217
|
-
};
|
|
218
248
|
'tax free': {
|
|
219
249
|
value: string;
|
|
220
250
|
};
|
|
@@ -20,9 +20,15 @@ export declare const stringsVietnamese: {
|
|
|
20
20
|
Back: {
|
|
21
21
|
value: string;
|
|
22
22
|
};
|
|
23
|
+
Billing: {
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
23
26
|
'Billing address': {
|
|
24
27
|
value: string;
|
|
25
28
|
};
|
|
29
|
+
Cancel: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
26
32
|
'Cart subtotal': {
|
|
27
33
|
value: string;
|
|
28
34
|
};
|
|
@@ -59,6 +65,9 @@ export declare const stringsVietnamese: {
|
|
|
59
65
|
'Duties, taxes, and fees': {
|
|
60
66
|
value: string;
|
|
61
67
|
};
|
|
68
|
+
Email: {
|
|
69
|
+
value: string;
|
|
70
|
+
};
|
|
62
71
|
'Error creating Checkout': {
|
|
63
72
|
value: string;
|
|
64
73
|
};
|
|
@@ -68,6 +77,9 @@ export declare const stringsVietnamese: {
|
|
|
68
77
|
'Expected delivery': {
|
|
69
78
|
value: string;
|
|
70
79
|
};
|
|
80
|
+
'First name': {
|
|
81
|
+
value: string;
|
|
82
|
+
};
|
|
71
83
|
'Go to payment': {
|
|
72
84
|
value: string;
|
|
73
85
|
};
|
|
@@ -80,6 +92,9 @@ export declare const stringsVietnamese: {
|
|
|
80
92
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
81
93
|
value: string;
|
|
82
94
|
};
|
|
95
|
+
'Last name': {
|
|
96
|
+
value: string;
|
|
97
|
+
};
|
|
83
98
|
'Missing required fields. Make sure all fields are completed.': {
|
|
84
99
|
value: string;
|
|
85
100
|
};
|
|
@@ -125,10 +140,10 @@ export declare const stringsVietnamese: {
|
|
|
125
140
|
"Payment processing. We'll update you when payment is received.": {
|
|
126
141
|
value: string;
|
|
127
142
|
};
|
|
128
|
-
'
|
|
143
|
+
'Phone number': {
|
|
129
144
|
value: string;
|
|
130
145
|
};
|
|
131
|
-
'Please
|
|
146
|
+
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
132
147
|
value: string;
|
|
133
148
|
};
|
|
134
149
|
'Postal code': {
|
|
@@ -176,6 +191,9 @@ export declare const stringsVietnamese: {
|
|
|
176
191
|
State: {
|
|
177
192
|
value: string;
|
|
178
193
|
};
|
|
194
|
+
'State/Province': {
|
|
195
|
+
value: string;
|
|
196
|
+
};
|
|
179
197
|
'Taxes will apply to all orders': {
|
|
180
198
|
value: string;
|
|
181
199
|
};
|
|
@@ -185,6 +203,18 @@ export declare const stringsVietnamese: {
|
|
|
185
203
|
"There's been an error updating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
186
204
|
value: string;
|
|
187
205
|
};
|
|
206
|
+
'To ensure delivery all address details must be in Latin characters.': {
|
|
207
|
+
value: string;
|
|
208
|
+
};
|
|
209
|
+
'Translated address': {
|
|
210
|
+
value: string;
|
|
211
|
+
};
|
|
212
|
+
'Update address': {
|
|
213
|
+
value: string;
|
|
214
|
+
};
|
|
215
|
+
'Update your address': {
|
|
216
|
+
value: string;
|
|
217
|
+
};
|
|
188
218
|
"We couldn't complete your payment. Please verify the payment details and try again.": {
|
|
189
219
|
value: string;
|
|
190
220
|
};
|
|
@@ -197,6 +227,9 @@ export declare const stringsVietnamese: {
|
|
|
197
227
|
'Welcome!': {
|
|
198
228
|
value: string;
|
|
199
229
|
};
|
|
230
|
+
'What you entered': {
|
|
231
|
+
value: string;
|
|
232
|
+
};
|
|
200
233
|
"You're all set!": {
|
|
201
234
|
value: string;
|
|
202
235
|
};
|
|
@@ -212,9 +245,6 @@ export declare const stringsVietnamese: {
|
|
|
212
245
|
'duty free': {
|
|
213
246
|
value: string;
|
|
214
247
|
};
|
|
215
|
-
'only supports Latin characters (A-Z, a-z)': {
|
|
216
|
-
value: string;
|
|
217
|
-
};
|
|
218
248
|
'tax free': {
|
|
219
249
|
value: string;
|
|
220
250
|
};
|
|
@@ -30,5 +30,5 @@ type TranslateParams<T extends string> = ExtractVariables<T> extends never ? [T,
|
|
|
30
30
|
* // No variables:
|
|
31
31
|
* translate('Above de minimis threshold for')
|
|
32
32
|
*/
|
|
33
|
-
declare const translate: <T extends "${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy." | "${percentage} GST due on any order above ${threshold}." | "Above de minimis threshold for" | "Address" | "Address line 1" | "Address line 2" | "Back" | "Billing address" | "Cart subtotal" | "City" | "Contact" | "Continue to shipping" | "
|
|
33
|
+
declare const translate: <T extends "Shipping" | "Email" | "Name" | "Guaranteed" | "Country" | "Customer" | "Delivery" | "Payment" | "${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy." | "${percentage} GST due on any order above ${threshold}." | "Above de minimis threshold for" | "Address" | "Address line 1" | "Address line 2" | "Back" | "Billing" | "Billing address" | "Cancel" | "Cart subtotal" | "City" | "Contact" | "Continue to shipping" | "Customer information" | "Delivery options" | "Duties and taxes will be applied to items and shipping." | "Duties will apply to all orders" | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Expected delivery" | "First name" | "Go to payment" | "Keep shopping" | "Know about duties and taxes before you buy. Shop with confidence!" | "Last name" | "Missing required fields. Make sure all fields are completed." | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at the door" | "Order is over the de minimis threshold for both duty and tax" | "Order total" | "Orders to ${countryName} must be over ${threshold} to ship." | "Pay" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Phone number" | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Restricted item" | "Restricted items found" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Shipping address same as billing" | "Shipping method" | "Something went wrong." | "Spend" | "State" | "State/Province" | "Taxes will apply to all orders" | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "To ensure delivery all address details must be in Latin characters." | "Translated address" | "Update address" | "Update your address" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to" | "Welcome!" | "What you entered" | "You're all set!" | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "business days" | "click to learn more" | "duty free" | "tax free">(...[key, replacement]: TranslateParams<T>) => string;
|
|
34
34
|
export { translate, translationStore, translationStoreUpdateLanguage };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import type { ContactOption, Stripe } from '@stripe/stripe-js';
|
|
3
|
-
import { containsNonLatinChars } from "../../utils/containsNonLatinChars";
|
|
2
|
+
import type { ContactOption as StripeContactOption, Stripe } from '@stripe/stripe-js';
|
|
4
3
|
export declare class ZonosAddress {
|
|
5
4
|
/**
|
|
6
5
|
* The type of address element to render
|
|
@@ -13,18 +12,12 @@ export declare class ZonosAddress {
|
|
|
13
12
|
/**
|
|
14
13
|
* Default address for stripe
|
|
15
14
|
*/
|
|
16
|
-
defaultAddress:
|
|
15
|
+
defaultAddress: StripeContactOption | null;
|
|
17
16
|
/**
|
|
18
17
|
* Event to emit when address is not containing allowed character sets
|
|
19
18
|
*/
|
|
20
19
|
invalidCharacters: EventEmitter<boolean>;
|
|
21
20
|
stripe: Stripe | null;
|
|
22
|
-
/**
|
|
23
|
-
* Flag to know if we already sent a error event when the address contains invalid characters.
|
|
24
|
-
* We should just send the error event once.
|
|
25
|
-
*/
|
|
26
|
-
reportedInvalidCharacters: boolean;
|
|
27
|
-
invalidCharacterList: ReturnType<typeof containsNonLatinChars> | null;
|
|
28
21
|
/**
|
|
29
22
|
* Check if the address is dirty or not to scroll into view. When the component is mounted, if the data is filled with address line 1, it's considered dirty
|
|
30
23
|
*/
|
|
@@ -33,7 +26,6 @@ export declare class ZonosAddress {
|
|
|
33
26
|
private getStripeAddressInstance;
|
|
34
27
|
private updateAddressEventData;
|
|
35
28
|
private updateAddressElement;
|
|
36
|
-
private checkInvalidCharacters;
|
|
37
29
|
watchInitStripe(): Promise<void>;
|
|
38
30
|
disconnectedCallback(): void;
|
|
39
31
|
componentDidLoad(): void;
|
package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ export declare class ZonosLinkAuthentication {
|
|
|
4
4
|
* The title text for the authentication element
|
|
5
5
|
*/
|
|
6
6
|
titleText: string;
|
|
7
|
+
/**
|
|
8
|
+
* Default email for stripe
|
|
9
|
+
*/
|
|
10
|
+
defaultEmail: string | null;
|
|
7
11
|
stripe: Stripe | null;
|
|
8
12
|
el: HTMLZonosLinkAuthenticationElement;
|
|
9
13
|
watchInitStripe(): void;
|
|
@@ -37,7 +37,7 @@ import type { IDeepKeyof, IDeepPropertyType } from "../../types/utils/deep/IDeep
|
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
*/
|
|
40
|
-
export declare const changeDeepProperty: <T extends Record<string, unknown>, P extends IDeepKeyof<T, Depth>, Depth extends 0 |
|
|
40
|
+
export declare const changeDeepProperty: <T extends Record<string, unknown>, P extends IDeepKeyof<T, Depth>, Depth extends 0 | 1 | 2 | 6 | 8 | 3 | 4 | 5 | 7 | 9 = 4>({ obj, propertyPath, value, }: {
|
|
41
41
|
obj: T;
|
|
42
42
|
propertyPath: P;
|
|
43
43
|
value: IDeepPropertyType<T, P, Depth>;
|
|
@@ -60,7 +60,7 @@ import type { IDeepKeyofAtIndex, IDeepPropertyTypeAtIndex } from "../../types/ut
|
|
|
60
60
|
},
|
|
61
61
|
};
|
|
62
62
|
*/
|
|
63
|
-
export declare const changeDeepPropertyAtIndex: <T extends object, P extends IDeepKeyofAtIndex<T, Depth>, Depth extends 0 |
|
|
63
|
+
export declare const changeDeepPropertyAtIndex: <T extends object, P extends IDeepKeyofAtIndex<T, Depth>, Depth extends 0 | 1 | 2 | 6 | 8 | 3 | 4 | 5 | 7 | 9 = 4>({ index, obj, propertyPath, value, }: {
|
|
64
64
|
index: number;
|
|
65
65
|
obj: T;
|
|
66
66
|
propertyPath: P;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { StripeAddressElementChangeEvent } from '@stripe/stripe-js';
|
|
2
|
+
import type { containsNonLatinChars } from "../containsNonLatinChars";
|
|
3
|
+
import type { ValidateAddressRequestBody } from "../../../types/checkout/api/ValidateAddressRequest";
|
|
4
|
+
type Params = {
|
|
5
|
+
addressInvalidCharactersList: ReturnType<typeof containsNonLatinChars> | null;
|
|
6
|
+
billingAddressInvalidCharactersList: ReturnType<typeof containsNonLatinChars> | null;
|
|
7
|
+
stripeAddressEventData: StripeAddressElementChangeEvent | null;
|
|
8
|
+
stripeBillingAddressEventData: StripeAddressElementChangeEvent | null;
|
|
9
|
+
stripeShippingSameAsBilling: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* This function builds the request body for validating an address. It checks if the address and billing address are ready and if they contain any invalid characters.
|
|
13
|
+
* If there are non-latin character to translate, returns an object with the address fields that have invalid characters, the destination country, and the first and last name.
|
|
14
|
+
* If the conditions are not met, it returns null.
|
|
15
|
+
*
|
|
16
|
+
* @param {Object} params - The parameters for the function.
|
|
17
|
+
* @param {ReturnType<typeof containsNonLatinChars> | null} params.addressInvalidCharactersList - The list of address fields that contain invalid characters.
|
|
18
|
+
* @param {ReturnType<typeof containsNonLatinChars> | null} params.billingAddressInvalidCharactersList - The list of billing address fields that contain invalid characters.
|
|
19
|
+
* @param {StripeAddressEventData} params.stripeAddressEventData - The Stripe event data for the address.
|
|
20
|
+
* @param {StripeAddressEventData} params.stripeBillingAddressEventData - The Stripe event data for the billing address.
|
|
21
|
+
* @param {boolean} params.stripeShippingSameAsBilling - A flag indicating whether the shipping address is the same as the billing address.
|
|
22
|
+
*
|
|
23
|
+
* @returns {ValidateAddressRequestBody | null} - An object that contains the address fields that have invalid characters, the destination country, and the first and last name. If the conditions are not met, the function returns null.
|
|
24
|
+
*/
|
|
25
|
+
export declare const buildTranslateRequestBody: ({ addressInvalidCharactersList, billingAddressInvalidCharactersList, stripeAddressEventData, stripeBillingAddressEventData, stripeShippingSameAsBilling, }: Params) => ValidateAddressRequestBody | null;
|
|
26
|
+
export {};
|
|
@@ -8,6 +8,7 @@ type Params = {
|
|
|
8
8
|
state: string;
|
|
9
9
|
};
|
|
10
10
|
type Result = Partial<Record<keyof Params, boolean>>;
|
|
11
|
+
export declare const isTextContainsNonLatinChars: (text: string) => boolean;
|
|
11
12
|
/**
|
|
12
13
|
* Check if the given address object contains non-latin characters
|
|
13
14
|
* @returns an object with the same keys as the input object, and a boolean value indicating if the value contains non-latin characters
|
|
@@ -4,4 +4,10 @@ import type { ElementsUiStyle } from "../../types/generated/graphql.customer.typ
|
|
|
4
4
|
* @param overrideBorderStyle
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
|
-
export declare const getBorderRadius: (
|
|
7
|
+
export declare const getBorderRadius: (params?: {
|
|
8
|
+
/**
|
|
9
|
+
* This is the custom round radius for component that 10px is too much for them
|
|
10
|
+
*/
|
|
11
|
+
customRoundRadius?: string;
|
|
12
|
+
overrideBorderStyle?: ElementsUiStyle;
|
|
13
|
+
}) => string;
|