@zonos/elements 1.3.18-alpha.0 → 1.3.18-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-d25723e7.js → cart-941a31dd.js} +562 -12
- package/dist/cjs/{getBorderRadius-44b3eca1.js → getBorderRadius-bcb309a8.js} +1 -1
- package/dist/cjs/{index-654a6001.js → index-b071017b.js} +4 -1
- package/dist/cjs/{isDarkColor-01f45d3f.js → isDarkColor-b0393089.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{submitGtag-484eaf9d.js → submitGtag-9210b4fe.js} +2 -2
- package/dist/cjs/zonos-address_8.cjs.entry.js +22 -11
- package/dist/cjs/zonos-badge_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +22 -11
- package/dist/cjs/zonos-card_2.cjs.entry.js +7 -7
- package/dist/cjs/{zonos-cart-items_9.cjs.entry.js → zonos-cart-items_11.cjs.entry.js} +224 -14
- package/dist/cjs/zonos-checkout.cjs.entry.js +36 -10
- 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 +11 -11
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +8 -8
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-input.cjs.entry.js +7 -7
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
- package/dist/cjs/zonos-notification.cjs.entry.js +2 -2
- package/dist/cjs/zonos-payment.cjs.entry.js +6 -6
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-d8bb0bda.js → zonosStore-7c6205ca.js} +2 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +2 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/assets/ChevronUpIcon.svg +23 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/assets/empty-item.jpeg +0 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.css +105 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +101 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +6 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +43 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +18 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -2
- package/dist/collection/components/common/zonos-button/zonos-button.css +12 -0
- package/dist/collection/components/common/zonos-button/zonos-button.js +43 -8
- package/dist/collection/components/common/zonos-confirm-dialog/assets/ExclamationMarkDuotoneIcon.svg +4 -0
- package/dist/collection/components/common/zonos-confirm-dialog/assets/HelpDuotoneIcon.svg +4 -0
- package/dist/collection/components/common/zonos-confirm-dialog/assets/WarningDuotoneIcon.svg +4 -0
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +125 -0
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +322 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -4
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +38 -4
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
- package/dist/collection/components/main/zonos-controller.js +3 -3
- package/dist/collection/components/store/checkout/cart.js +55 -5
- package/dist/collection/components/store/checkout/stripe.js +6 -2
- package/dist/collection/components/store/hello/localization.js +12 -2
- package/dist/collection/components/store/translationStore/strings.arabic.js +24 -0
- package/dist/collection/components/store/translationStore/strings.base.js +24 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +24 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +24 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +24 -0
- package/dist/collection/components/store/translationStore/strings.french.js +24 -0
- package/dist/collection/components/store/translationStore/strings.german.js +24 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +24 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +24 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +24 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +24 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +24 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +24 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +24 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +24 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +24 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +24 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +24 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +24 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +24 -0
- package/dist/collection/components/store/zonosStore.js +1 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- 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 +1 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +6 -1
- package/dist/collection/scripts/zonosBase.js +2 -1
- package/dist/collection/types/checkout/RestrictProduct.js +1 -0
- package/dist/collection/types/generated/graphql.customer.types.js +40 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +1 -0
- package/dist/components/stripe.js +79 -10
- package/dist/components/submitGtag.js +1 -1
- package/dist/components/trackConversionEvent.js +1 -1
- package/dist/components/translationStore.js +480 -0
- package/dist/components/zonos-address2.js +1 -1
- package/dist/components/zonos-button2.js +20 -8
- package/dist/components/zonos-cart-items2.js +2 -1
- package/dist/components/zonos-cart-restricted-items.d.ts +11 -0
- package/dist/components/zonos-cart-restricted-items.js +6 -0
- package/dist/components/zonos-cart-restricted-items2.js +135 -0
- package/dist/components/zonos-cart-subtotal2.js +6 -3
- package/dist/components/zonos-checkout-finish2.js +1 -1
- package/dist/components/zonos-checkout-payment2.js +1 -1
- package/dist/components/zonos-checkout.js +77 -38
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-confirm-dialog.d.ts +11 -0
- package/dist/components/zonos-confirm-dialog.js +6 -0
- package/dist/components/zonos-confirm-dialog2.js +161 -0
- package/dist/components/zonos-controller.js +2 -2
- package/dist/components/zonos-country-select2.js +3 -3
- package/dist/components/zonos-custom-message2.js +2 -2
- package/dist/components/zonos-customer-info2.js +19 -3
- package/dist/components/zonos-dialog2.js +17 -5
- package/dist/components/zonos-hello-dialog-footer2.js +2 -2
- package/dist/components/zonos-hello-dialog2.js +4 -4
- package/dist/components/zonos-hello.js +1 -1
- package/dist/components/zonos-input2.js +4 -4
- package/dist/components/zonos-language-select2.js +3 -3
- package/dist/components/zonos-link-authentication2.js +1 -1
- package/dist/components/zonos-logo.js +2 -2
- package/dist/components/zonos-payment2.js +1 -1
- package/dist/components/zonos-review2.js +3 -2
- package/dist/components/zonos-select-dialog-header2.js +2 -2
- package/dist/components/zonos-shipping2.js +1 -1
- package/dist/components/zonos-tooltip2.js +2 -2
- package/dist/components/zonos-v-stack2.js +2 -2
- package/dist/components/zonosStore.js +1 -0
- package/dist/esm/{cart-02f5c2ea.js → cart-cc593c2b.js} +562 -13
- package/dist/esm/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
- package/dist/esm/{index-e063389c.js → index-3b46f3c3.js} +4 -1
- package/dist/esm/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{submitGtag-ba38e1ac.js → submitGtag-e50f903f.js} +2 -2
- package/dist/esm/zonos-address_8.entry.js +22 -11
- package/dist/esm/zonos-badge_2.entry.js +4 -4
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +22 -11
- package/dist/esm/zonos-card_2.entry.js +7 -7
- package/dist/esm/{zonos-cart-items_9.entry.js → zonos-cart-items_11.entry.js} +223 -15
- package/dist/esm/zonos-checkout.entry.js +36 -10
- 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 +11 -11
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +8 -8
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-input.entry.js +7 -7
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +4 -4
- package/dist/esm/zonos-notification.entry.js +2 -2
- package/dist/esm/zonos-payment.entry.js +6 -6
- package/dist/esm/zonos-select-dialog-header_2.entry.js +6 -6
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +2 -1
- package/dist/esm-es5/cart-cc593c2b.js +1 -0
- package/dist/esm-es5/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
- package/dist/esm-es5/{index-e063389c.js → index-3b46f3c3.js} +1 -1
- package/dist/esm-es5/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{submitGtag-ba38e1ac.js → submitGtag-e50f903f.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_11.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +1 -1
- package/dist/scripts/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-cart-restricted-items/zonos-cart-restricted-items.d.ts +14 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +11 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +2 -0
- package/dist/types/components/common/zonos-button/zonos-button.d.ts +7 -1
- package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +60 -0
- package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +6 -1
- package/dist/types/components/store/checkout/cart.d.ts +38 -4
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +24 -0
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +4 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components.d.ts +163 -5
- package/dist/types/scripts/zonosBase.d.ts +21 -2
- package/dist/types/types/checkout/CheckoutConfig.d.ts +7 -0
- package/dist/types/types/checkout/RestrictProduct.d.ts +7 -0
- package/dist/types/types/generated/graphql.customer.types.d.ts +54 -0
- package/dist/types/types/generated/graphql.customer.types.ts +66 -1
- package/dist/types/types/generated/graphql.frontend.types.d.ts +2 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +2 -1
- package/dist/zonos-elements/assets/ExclamationMarkDuotoneIcon.svg +4 -0
- package/dist/zonos-elements/assets/HelpDuotoneIcon.svg +4 -0
- package/dist/zonos-elements/assets/WarningDuotoneIcon.svg +4 -0
- package/dist/zonos-elements/{p-d7acc81c.entry.js → p-020a9b86.entry.js} +1 -1
- package/dist/zonos-elements/{p-905d842b.entry.js → p-04030a48.entry.js} +1 -1
- package/dist/zonos-elements/{p-fe246229.system.entry.js → p-0d0f9694.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0267a969.entry.js → p-0e892292.entry.js} +1 -1
- package/dist/zonos-elements/{p-57adc7f8.entry.js → p-0fac99e7.entry.js} +1 -1
- package/dist/zonos-elements/p-1795c760.system.entry.js +1 -0
- package/dist/zonos-elements/{p-771fbeb3.system.js → p-1b9442f6.system.js} +1 -1
- package/dist/zonos-elements/{p-1ba4cf64.entry.js → p-24ac1c6f.entry.js} +1 -1
- package/dist/zonos-elements/p-26a60a6e.entry.js +1 -0
- package/dist/zonos-elements/{p-835c8928.entry.js → p-281b8bdf.entry.js} +1 -1
- package/dist/zonos-elements/{p-a889c1bc.entry.js → p-2af19b63.entry.js} +1 -1
- package/dist/zonos-elements/{p-582d8b27.entry.js → p-2ced091f.entry.js} +1 -1
- package/dist/zonos-elements/{p-909a331c.js → p-2f759d82.js} +1 -1
- package/dist/zonos-elements/p-32744531.entry.js +1 -0
- package/dist/zonos-elements/{p-532995a4.system.entry.js → p-35ac375a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9da0562e.system.entry.js → p-3bc88c3c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-36a461a6.system.entry.js → p-3e26d7b3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9ec93319.entry.js → p-498a0e18.entry.js} +1 -1
- package/dist/zonos-elements/{p-572a4de2.system.entry.js → p-4caaaaeb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-79f3c4f5.system.js → p-58e730b6.system.js} +1 -1
- package/dist/zonos-elements/{p-e7b4b756.entry.js → p-597b75f3.entry.js} +1 -1
- package/dist/zonos-elements/{p-6ece23b9.entry.js → p-5e783394.entry.js} +1 -1
- package/dist/zonos-elements/{p-87badea9.system.js → p-62ecfbcc.system.js} +1 -1
- package/dist/zonos-elements/{p-f99eb5e7.entry.js → p-6366e7e3.entry.js} +1 -1
- package/dist/zonos-elements/p-693b9985.js +1 -0
- package/dist/zonos-elements/{p-bf32179a.system.entry.js → p-6eda6199.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6dec476d.system.entry.js → p-7c8ee4b9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-305f27c7.entry.js → p-80442f16.entry.js} +1 -1
- package/dist/zonos-elements/{p-cf0f8e32.entry.js → p-80ea85b8.entry.js} +1 -1
- package/dist/zonos-elements/{p-679877b1.system.entry.js → p-8171d013.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-83cc2936.js → p-8c0b4a61.js} +1 -1
- package/dist/zonos-elements/{p-4dca5484.system.entry.js → p-8cd6633a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8da16d53.system.js +1 -0
- package/dist/zonos-elements/p-96b8c9ba.system.entry.js +1 -0
- package/dist/zonos-elements/{p-f124e659.system.entry.js → p-98a0b694.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fd49d864.entry.js → p-9aab3ad7.entry.js} +1 -1
- package/dist/zonos-elements/{p-ad088d46.system.entry.js → p-9e8d38f7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-83fecb2a.entry.js → p-9e9c318b.entry.js} +1 -1
- package/dist/zonos-elements/{p-e108e5ed.system.entry.js → p-a47382ae.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-47e00966.system.entry.js → p-b98cdf39.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3638e2ed.entry.js → p-bd9b2165.entry.js} +1 -1
- package/dist/zonos-elements/{p-ff403840.entry.js → p-c20e5430.entry.js} +1 -1
- package/dist/zonos-elements/{p-13ddaf31.js → p-ce347974.js} +1 -1
- package/dist/zonos-elements/{p-f71489e5.system.entry.js → p-d0bc8902.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-17e265c3.system.entry.js → p-d7a939df.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d7b8c1c1.system.entry.js +1 -0
- package/dist/zonos-elements/{p-163ff5b5.system.js → p-d99232c5.system.js} +1 -1
- package/dist/zonos-elements/p-dd0fd351.entry.js +1 -0
- package/dist/zonos-elements/p-e015cb0e.js +1 -0
- package/dist/zonos-elements/p-e0bf9666.system.js +1 -0
- package/dist/zonos-elements/{p-b98bdbcc.system.entry.js → p-e13bfbda.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-239cc943.system.entry.js → p-e1fbd05d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0265da6f.js → p-e553dd19.js} +1 -1
- package/dist/zonos-elements/p-e6fa0ebc.system.js +1 -0
- package/dist/zonos-elements/{p-5e33aab7.system.entry.js → p-f6546bf4.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +13 -13
- package/dist/esm-es5/cart-02f5c2ea.js +0 -1
- package/dist/esm-es5/zonos-cart-items_9.entry.js +0 -1
- package/dist/zonos-elements/p-154aaf95.system.js +0 -1
- package/dist/zonos-elements/p-168e5b5f.system.js +0 -1
- package/dist/zonos-elements/p-1b8082dd.entry.js +0 -1
- package/dist/zonos-elements/p-246133d3.entry.js +0 -1
- package/dist/zonos-elements/p-54004793.system.entry.js +0 -1
- package/dist/zonos-elements/p-54a32fd7.entry.js +0 -1
- package/dist/zonos-elements/p-5d13795a.system.entry.js +0 -1
- package/dist/zonos-elements/p-981bf71a.js +0 -1
- package/dist/zonos-elements/p-e0e66004.system.js +0 -1
- package/dist/zonos-elements/p-ed7d251d.system.entry.js +0 -1
- package/dist/zonos-elements/p-f1962041.js +0 -1
|
@@ -221,7 +221,9 @@ export namespace Components {
|
|
|
221
221
|
*/
|
|
222
222
|
"theme"?: ElementsUiTheme;
|
|
223
223
|
/**
|
|
224
|
-
* The variance of the button
|
|
224
|
+
* The variance of the button
|
|
225
|
+
* @note If the button `variant` is set to 'standard', backgroundColor will be disregarded
|
|
226
|
+
* @default standard
|
|
225
227
|
*/
|
|
226
228
|
"variant": | 'primary'
|
|
227
229
|
| 'success'
|
|
@@ -230,6 +232,10 @@ export namespace Components {
|
|
|
230
232
|
| 'standard'
|
|
231
233
|
| 'danger'
|
|
232
234
|
| 'warning';
|
|
235
|
+
/**
|
|
236
|
+
* Whether or not the button has a box shadow
|
|
237
|
+
*/
|
|
238
|
+
"withBoxShadow": boolean;
|
|
233
239
|
}
|
|
234
240
|
interface ZonosCard {
|
|
235
241
|
/**
|
|
@@ -259,6 +265,12 @@ export namespace Components {
|
|
|
259
265
|
}
|
|
260
266
|
interface ZonosCartItems {
|
|
261
267
|
}
|
|
268
|
+
interface ZonosCartRestrictedItems {
|
|
269
|
+
/**
|
|
270
|
+
* This is to hide the section when the parent collapse on mobile
|
|
271
|
+
*/
|
|
272
|
+
"hide": boolean;
|
|
273
|
+
}
|
|
262
274
|
interface ZonosCartSubtotal {
|
|
263
275
|
}
|
|
264
276
|
interface ZonosCheckbox {
|
|
@@ -301,7 +313,7 @@ export namespace Components {
|
|
|
301
313
|
/**
|
|
302
314
|
* Close dialog action
|
|
303
315
|
*/
|
|
304
|
-
"closeDialogHandler": () => Promise<void>;
|
|
316
|
+
"closeDialogHandler": (props?: { confirmed: boolean; }) => Promise<void>;
|
|
305
317
|
/**
|
|
306
318
|
* Default address to use for the checkout (preview mode)
|
|
307
319
|
*/
|
|
@@ -411,6 +423,48 @@ export namespace Components {
|
|
|
411
423
|
*/
|
|
412
424
|
"middle": string;
|
|
413
425
|
}
|
|
426
|
+
interface ZonosConfirmDialog {
|
|
427
|
+
/**
|
|
428
|
+
* Cancel button text
|
|
429
|
+
*/
|
|
430
|
+
"dialogCancelBtnText": string;
|
|
431
|
+
/**
|
|
432
|
+
* Confirm button text
|
|
433
|
+
*/
|
|
434
|
+
"dialogConfirmBtnText": string;
|
|
435
|
+
/**
|
|
436
|
+
* Dialog intent (for icon and button color)
|
|
437
|
+
* @default "info"
|
|
438
|
+
*/
|
|
439
|
+
"dialogIntent": 'info' | 'danger' | 'warn';
|
|
440
|
+
/**
|
|
441
|
+
* Whether or not the dialog is open
|
|
442
|
+
*/
|
|
443
|
+
"dialogOpen": boolean;
|
|
444
|
+
/**
|
|
445
|
+
* Dialog subtitle text
|
|
446
|
+
* @default "" No subtitle
|
|
447
|
+
*/
|
|
448
|
+
"dialogSubtitle": string;
|
|
449
|
+
/**
|
|
450
|
+
* Dialog title text
|
|
451
|
+
* @default "Are you sure?"
|
|
452
|
+
*/
|
|
453
|
+
"dialogTitle": string;
|
|
454
|
+
/**
|
|
455
|
+
* Whether or not the dialog is open
|
|
456
|
+
*/
|
|
457
|
+
"isMobile": boolean;
|
|
458
|
+
/**
|
|
459
|
+
* Whether or not to close the dialog when clicking outside of it
|
|
460
|
+
* @default false
|
|
461
|
+
*/
|
|
462
|
+
"noClickOutside": boolean;
|
|
463
|
+
/**
|
|
464
|
+
* Submit button main color
|
|
465
|
+
*/
|
|
466
|
+
"submitBtnColor"?: string;
|
|
467
|
+
}
|
|
414
468
|
interface ZonosController {
|
|
415
469
|
/**
|
|
416
470
|
* The zonos config object
|
|
@@ -512,13 +566,17 @@ export namespace Components {
|
|
|
512
566
|
*/
|
|
513
567
|
"headerText": string;
|
|
514
568
|
/**
|
|
515
|
-
* The height of the dialog (max-
|
|
569
|
+
* The height of the dialog (max-width still 90vh)
|
|
516
570
|
*/
|
|
517
571
|
"height"?: string;
|
|
518
572
|
/**
|
|
519
573
|
* Load loading spinner for the dialog or not
|
|
520
574
|
*/
|
|
521
575
|
"isLoading": boolean;
|
|
576
|
+
/**
|
|
577
|
+
* The min height of the dialog
|
|
578
|
+
*/
|
|
579
|
+
"minHeight"?: string;
|
|
522
580
|
/**
|
|
523
581
|
* Flag to determine if the checkout is on mobile
|
|
524
582
|
*/
|
|
@@ -883,6 +941,10 @@ export interface ZonosCheckoutPaymentCustomEvent<T> extends CustomEvent<T> {
|
|
|
883
941
|
detail: T;
|
|
884
942
|
target: HTMLZonosCheckoutPaymentElement;
|
|
885
943
|
}
|
|
944
|
+
export interface ZonosConfirmDialogCustomEvent<T> extends CustomEvent<T> {
|
|
945
|
+
detail: T;
|
|
946
|
+
target: HTMLZonosConfirmDialogElement;
|
|
947
|
+
}
|
|
886
948
|
export interface ZonosControllerCustomEvent<T> extends CustomEvent<T> {
|
|
887
949
|
detail: T;
|
|
888
950
|
target: HTMLZonosControllerElement;
|
|
@@ -1000,6 +1062,12 @@ declare global {
|
|
|
1000
1062
|
prototype: HTMLZonosCartItemsElement;
|
|
1001
1063
|
new (): HTMLZonosCartItemsElement;
|
|
1002
1064
|
};
|
|
1065
|
+
interface HTMLZonosCartRestrictedItemsElement extends Components.ZonosCartRestrictedItems, HTMLStencilElement {
|
|
1066
|
+
}
|
|
1067
|
+
var HTMLZonosCartRestrictedItemsElement: {
|
|
1068
|
+
prototype: HTMLZonosCartRestrictedItemsElement;
|
|
1069
|
+
new (): HTMLZonosCartRestrictedItemsElement;
|
|
1070
|
+
};
|
|
1003
1071
|
interface HTMLZonosCartSubtotalElement extends Components.ZonosCartSubtotal, HTMLStencilElement {
|
|
1004
1072
|
}
|
|
1005
1073
|
var HTMLZonosCartSubtotalElement: {
|
|
@@ -1087,6 +1155,24 @@ declare global {
|
|
|
1087
1155
|
prototype: HTMLZonosComponentElement;
|
|
1088
1156
|
new (): HTMLZonosComponentElement;
|
|
1089
1157
|
};
|
|
1158
|
+
interface HTMLZonosConfirmDialogElementEventMap {
|
|
1159
|
+
"confirmClicked": void;
|
|
1160
|
+
"cancelClicked": void;
|
|
1161
|
+
}
|
|
1162
|
+
interface HTMLZonosConfirmDialogElement extends Components.ZonosConfirmDialog, HTMLStencilElement {
|
|
1163
|
+
addEventListener<K extends keyof HTMLZonosConfirmDialogElementEventMap>(type: K, listener: (this: HTMLZonosConfirmDialogElement, ev: ZonosConfirmDialogCustomEvent<HTMLZonosConfirmDialogElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1164
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1165
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1166
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1167
|
+
removeEventListener<K extends keyof HTMLZonosConfirmDialogElementEventMap>(type: K, listener: (this: HTMLZonosConfirmDialogElement, ev: ZonosConfirmDialogCustomEvent<HTMLZonosConfirmDialogElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1168
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1169
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1170
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1171
|
+
}
|
|
1172
|
+
var HTMLZonosConfirmDialogElement: {
|
|
1173
|
+
prototype: HTMLZonosConfirmDialogElement;
|
|
1174
|
+
new (): HTMLZonosConfirmDialogElement;
|
|
1175
|
+
};
|
|
1090
1176
|
interface HTMLZonosControllerElementEventMap {
|
|
1091
1177
|
"stripeInitEvent": { publishableKey: string };
|
|
1092
1178
|
}
|
|
@@ -1324,6 +1410,7 @@ declare global {
|
|
|
1324
1410
|
"zonos-button": HTMLZonosButtonElement;
|
|
1325
1411
|
"zonos-card": HTMLZonosCardElement;
|
|
1326
1412
|
"zonos-cart-items": HTMLZonosCartItemsElement;
|
|
1413
|
+
"zonos-cart-restricted-items": HTMLZonosCartRestrictedItemsElement;
|
|
1327
1414
|
"zonos-cart-subtotal": HTMLZonosCartSubtotalElement;
|
|
1328
1415
|
"zonos-checkbox": HTMLZonosCheckboxElement;
|
|
1329
1416
|
"zonos-checkout": HTMLZonosCheckoutElement;
|
|
@@ -1333,6 +1420,7 @@ declare global {
|
|
|
1333
1420
|
"zonos-checkout-progress-tabs": HTMLZonosCheckoutProgressTabsElement;
|
|
1334
1421
|
"zonos-collapse": HTMLZonosCollapseElement;
|
|
1335
1422
|
"zonos-component": HTMLZonosComponentElement;
|
|
1423
|
+
"zonos-confirm-dialog": HTMLZonosConfirmDialogElement;
|
|
1336
1424
|
"zonos-controller": HTMLZonosControllerElement;
|
|
1337
1425
|
"zonos-country-flag": HTMLZonosCountryFlagElement;
|
|
1338
1426
|
"zonos-country-select": HTMLZonosCountrySelectElement;
|
|
@@ -1558,7 +1646,9 @@ declare namespace LocalJSX {
|
|
|
1558
1646
|
*/
|
|
1559
1647
|
"theme"?: ElementsUiTheme;
|
|
1560
1648
|
/**
|
|
1561
|
-
* The variance of the button
|
|
1649
|
+
* The variance of the button
|
|
1650
|
+
* @note If the button `variant` is set to 'standard', backgroundColor will be disregarded
|
|
1651
|
+
* @default standard
|
|
1562
1652
|
*/
|
|
1563
1653
|
"variant"?: | 'primary'
|
|
1564
1654
|
| 'success'
|
|
@@ -1567,6 +1657,10 @@ declare namespace LocalJSX {
|
|
|
1567
1657
|
| 'standard'
|
|
1568
1658
|
| 'danger'
|
|
1569
1659
|
| 'warning';
|
|
1660
|
+
/**
|
|
1661
|
+
* Whether or not the button has a box shadow
|
|
1662
|
+
*/
|
|
1663
|
+
"withBoxShadow"?: boolean;
|
|
1570
1664
|
}
|
|
1571
1665
|
interface ZonosCard {
|
|
1572
1666
|
/**
|
|
@@ -1596,6 +1690,12 @@ declare namespace LocalJSX {
|
|
|
1596
1690
|
}
|
|
1597
1691
|
interface ZonosCartItems {
|
|
1598
1692
|
}
|
|
1693
|
+
interface ZonosCartRestrictedItems {
|
|
1694
|
+
/**
|
|
1695
|
+
* This is to hide the section when the parent collapse on mobile
|
|
1696
|
+
*/
|
|
1697
|
+
"hide"?: boolean;
|
|
1698
|
+
}
|
|
1599
1699
|
interface ZonosCartSubtotal {
|
|
1600
1700
|
}
|
|
1601
1701
|
interface ZonosCheckbox {
|
|
@@ -1740,6 +1840,56 @@ declare namespace LocalJSX {
|
|
|
1740
1840
|
*/
|
|
1741
1841
|
"middle"?: string;
|
|
1742
1842
|
}
|
|
1843
|
+
interface ZonosConfirmDialog {
|
|
1844
|
+
/**
|
|
1845
|
+
* Cancel button text
|
|
1846
|
+
*/
|
|
1847
|
+
"dialogCancelBtnText": string;
|
|
1848
|
+
/**
|
|
1849
|
+
* Confirm button text
|
|
1850
|
+
*/
|
|
1851
|
+
"dialogConfirmBtnText": string;
|
|
1852
|
+
/**
|
|
1853
|
+
* Dialog intent (for icon and button color)
|
|
1854
|
+
* @default "info"
|
|
1855
|
+
*/
|
|
1856
|
+
"dialogIntent"?: 'info' | 'danger' | 'warn';
|
|
1857
|
+
/**
|
|
1858
|
+
* Whether or not the dialog is open
|
|
1859
|
+
*/
|
|
1860
|
+
"dialogOpen"?: boolean;
|
|
1861
|
+
/**
|
|
1862
|
+
* Dialog subtitle text
|
|
1863
|
+
* @default "" No subtitle
|
|
1864
|
+
*/
|
|
1865
|
+
"dialogSubtitle"?: string;
|
|
1866
|
+
/**
|
|
1867
|
+
* Dialog title text
|
|
1868
|
+
* @default "Are you sure?"
|
|
1869
|
+
*/
|
|
1870
|
+
"dialogTitle"?: string;
|
|
1871
|
+
/**
|
|
1872
|
+
* Whether or not the dialog is open
|
|
1873
|
+
*/
|
|
1874
|
+
"isMobile"?: boolean;
|
|
1875
|
+
/**
|
|
1876
|
+
* Whether or not to close the dialog when clicking outside of it
|
|
1877
|
+
* @default false
|
|
1878
|
+
*/
|
|
1879
|
+
"noClickOutside"?: boolean;
|
|
1880
|
+
/**
|
|
1881
|
+
* Event to emit when the "Cancel" button is clicked
|
|
1882
|
+
*/
|
|
1883
|
+
"onCancelClicked"?: (event: ZonosConfirmDialogCustomEvent<void>) => void;
|
|
1884
|
+
/**
|
|
1885
|
+
* Event to emit when the "Confirm" button is clicked
|
|
1886
|
+
*/
|
|
1887
|
+
"onConfirmClicked"?: (event: ZonosConfirmDialogCustomEvent<void>) => void;
|
|
1888
|
+
/**
|
|
1889
|
+
* Submit button main color
|
|
1890
|
+
*/
|
|
1891
|
+
"submitBtnColor"?: string;
|
|
1892
|
+
}
|
|
1743
1893
|
interface ZonosController {
|
|
1744
1894
|
/**
|
|
1745
1895
|
* The zonos config object
|
|
@@ -1820,13 +1970,17 @@ declare namespace LocalJSX {
|
|
|
1820
1970
|
*/
|
|
1821
1971
|
"headerText"?: string;
|
|
1822
1972
|
/**
|
|
1823
|
-
* The height of the dialog (max-
|
|
1973
|
+
* The height of the dialog (max-width still 90vh)
|
|
1824
1974
|
*/
|
|
1825
1975
|
"height"?: string;
|
|
1826
1976
|
/**
|
|
1827
1977
|
* Load loading spinner for the dialog or not
|
|
1828
1978
|
*/
|
|
1829
1979
|
"isLoading"?: boolean;
|
|
1980
|
+
/**
|
|
1981
|
+
* The min height of the dialog
|
|
1982
|
+
*/
|
|
1983
|
+
"minHeight"?: string;
|
|
1830
1984
|
/**
|
|
1831
1985
|
* Flag to determine if the checkout is on mobile
|
|
1832
1986
|
*/
|
|
@@ -2167,6 +2321,7 @@ declare namespace LocalJSX {
|
|
|
2167
2321
|
"zonos-button": ZonosButton;
|
|
2168
2322
|
"zonos-card": ZonosCard;
|
|
2169
2323
|
"zonos-cart-items": ZonosCartItems;
|
|
2324
|
+
"zonos-cart-restricted-items": ZonosCartRestrictedItems;
|
|
2170
2325
|
"zonos-cart-subtotal": ZonosCartSubtotal;
|
|
2171
2326
|
"zonos-checkbox": ZonosCheckbox;
|
|
2172
2327
|
"zonos-checkout": ZonosCheckout;
|
|
@@ -2176,6 +2331,7 @@ declare namespace LocalJSX {
|
|
|
2176
2331
|
"zonos-checkout-progress-tabs": ZonosCheckoutProgressTabs;
|
|
2177
2332
|
"zonos-collapse": ZonosCollapse;
|
|
2178
2333
|
"zonos-component": ZonosComponent;
|
|
2334
|
+
"zonos-confirm-dialog": ZonosConfirmDialog;
|
|
2179
2335
|
"zonos-controller": ZonosController;
|
|
2180
2336
|
"zonos-country-flag": ZonosCountryFlag;
|
|
2181
2337
|
"zonos-country-select": ZonosCountrySelect;
|
|
@@ -2216,6 +2372,7 @@ declare module "@stencil/core" {
|
|
|
2216
2372
|
"zonos-button": LocalJSX.ZonosButton & JSXBase.HTMLAttributes<HTMLZonosButtonElement>;
|
|
2217
2373
|
"zonos-card": LocalJSX.ZonosCard & JSXBase.HTMLAttributes<HTMLZonosCardElement>;
|
|
2218
2374
|
"zonos-cart-items": LocalJSX.ZonosCartItems & JSXBase.HTMLAttributes<HTMLZonosCartItemsElement>;
|
|
2375
|
+
"zonos-cart-restricted-items": LocalJSX.ZonosCartRestrictedItems & JSXBase.HTMLAttributes<HTMLZonosCartRestrictedItemsElement>;
|
|
2219
2376
|
"zonos-cart-subtotal": LocalJSX.ZonosCartSubtotal & JSXBase.HTMLAttributes<HTMLZonosCartSubtotalElement>;
|
|
2220
2377
|
"zonos-checkbox": LocalJSX.ZonosCheckbox & JSXBase.HTMLAttributes<HTMLZonosCheckboxElement>;
|
|
2221
2378
|
"zonos-checkout": LocalJSX.ZonosCheckout & JSXBase.HTMLAttributes<HTMLZonosCheckoutElement>;
|
|
@@ -2225,6 +2382,7 @@ declare module "@stencil/core" {
|
|
|
2225
2382
|
"zonos-checkout-progress-tabs": LocalJSX.ZonosCheckoutProgressTabs & JSXBase.HTMLAttributes<HTMLZonosCheckoutProgressTabsElement>;
|
|
2226
2383
|
"zonos-collapse": LocalJSX.ZonosCollapse & JSXBase.HTMLAttributes<HTMLZonosCollapseElement>;
|
|
2227
2384
|
"zonos-component": LocalJSX.ZonosComponent & JSXBase.HTMLAttributes<HTMLZonosComponentElement>;
|
|
2385
|
+
"zonos-confirm-dialog": LocalJSX.ZonosConfirmDialog & JSXBase.HTMLAttributes<HTMLZonosConfirmDialogElement>;
|
|
2228
2386
|
"zonos-controller": LocalJSX.ZonosController & JSXBase.HTMLAttributes<HTMLZonosControllerElement>;
|
|
2229
2387
|
"zonos-country-flag": LocalJSX.ZonosCountryFlag & JSXBase.HTMLAttributes<HTMLZonosCountryFlagElement>;
|
|
2230
2388
|
"zonos-country-select": LocalJSX.ZonosCountrySelect & JSXBase.HTMLAttributes<HTMLZonosCountrySelectElement>;
|
|
@@ -3,13 +3,32 @@ import type { AppearanceConfig } from "../components/store/zonosStore";
|
|
|
3
3
|
import type { NotificationInit } from "../types/index";
|
|
4
4
|
import type { TempCart } from "../types/checkout/api/TempCart";
|
|
5
5
|
import type { CheckoutConfig } from "../types/checkout/CheckoutConfig";
|
|
6
|
+
import type { CountryCode, CurrencyCode } from "../types/generated/graphql.customer.types";
|
|
6
7
|
import type { HelloConfig } from "../types/hello/HelloConfig";
|
|
7
|
-
export type CurrencyConverter = (
|
|
8
|
+
export type CurrencyConverter = (prop: {
|
|
9
|
+
selector?: string;
|
|
10
|
+
convert: (amount: number) => number;
|
|
11
|
+
convertAndFormat: (amount: number) => string;
|
|
12
|
+
format: (amount: number) => string;
|
|
13
|
+
}) => void;
|
|
8
14
|
export type LoadZonosParamsConfig = {
|
|
9
15
|
appearance?: Partial<AppearanceConfig>;
|
|
10
16
|
checkoutSettings?: Partial<CheckoutConfig>;
|
|
11
17
|
currencyConverter?: CurrencyConverter;
|
|
12
18
|
helloSettings?: Partial<HelloConfig>;
|
|
19
|
+
/**
|
|
20
|
+
* Callback to be called when the country is changed
|
|
21
|
+
*/
|
|
22
|
+
onCountryChange?: (props: {
|
|
23
|
+
/**
|
|
24
|
+
* @param countryCode Updated country code
|
|
25
|
+
*/
|
|
26
|
+
countryCode: CountryCode;
|
|
27
|
+
/**
|
|
28
|
+
* @param currencyCode Updated currency code
|
|
29
|
+
*/
|
|
30
|
+
currencyCode: CurrencyCode;
|
|
31
|
+
}) => void;
|
|
13
32
|
};
|
|
14
33
|
export type LoadZonosParams = LoadZonosParamsConfig & {
|
|
15
34
|
storeId: number;
|
|
@@ -65,7 +84,7 @@ export declare abstract class Zonos {
|
|
|
65
84
|
static tempCartData: TempCart | null;
|
|
66
85
|
static getCurrentTimestamp: () => number;
|
|
67
86
|
private static zonosController;
|
|
68
|
-
static init: ({ appearance, checkoutSettings, currencyConverter, helloSettings, storeId, zonosApiKey, }: LoadZonosParams) => Promise<void>;
|
|
87
|
+
static init: ({ appearance, checkoutSettings, currencyConverter, helloSettings, onCountryChange, storeId, zonosApiKey, }: LoadZonosParams) => Promise<void>;
|
|
69
88
|
static displayCurrency: () => void;
|
|
70
89
|
static openHelloDialog: (value?: boolean) => void;
|
|
71
90
|
static showNotification: (notification: NotificationInit) => void;
|
|
@@ -66,6 +66,13 @@ export type CheckoutConfig = {
|
|
|
66
66
|
* @note will use temp cart data if available
|
|
67
67
|
*/
|
|
68
68
|
buildLandedCost?: (params: BuildLandedCostParams) => BuildLandedCostResponse;
|
|
69
|
+
/**
|
|
70
|
+
* Callback trigger when the checkout is closed
|
|
71
|
+
*/
|
|
72
|
+
onClose?: () => void;
|
|
73
|
+
/**
|
|
74
|
+
* Callback trigger when payment succeeds
|
|
75
|
+
*/
|
|
69
76
|
onOrderSuccess?: (props: {
|
|
70
77
|
zonosApiRoute: string;
|
|
71
78
|
zonosOrder: ZonosOrder;
|
|
@@ -1374,6 +1374,11 @@ export declare const hsCodeValidation: {
|
|
|
1374
1374
|
readonly Valid: "VALID";
|
|
1375
1375
|
};
|
|
1376
1376
|
export type HsCodeValidation = (typeof hsCodeValidation)[keyof typeof hsCodeValidation];
|
|
1377
|
+
export declare const imageFileType: {
|
|
1378
|
+
readonly Letterhead: "LETTERHEAD";
|
|
1379
|
+
readonly Signature: "SIGNATURE";
|
|
1380
|
+
};
|
|
1381
|
+
export type ImageFileType = (typeof imageFileType)[keyof typeof imageFileType];
|
|
1377
1382
|
export declare const imageSlot: {
|
|
1378
1383
|
readonly Image_1: "IMAGE_1";
|
|
1379
1384
|
readonly Image_2: "IMAGE_2";
|
|
@@ -1397,6 +1402,7 @@ export type InclusivePriceCalculateJobType = (typeof inclusivePriceCalculateJobT
|
|
|
1397
1402
|
export declare const inclusivePriceCatalogValidationJobCompletionStatus: {
|
|
1398
1403
|
readonly Archived: "ARCHIVED";
|
|
1399
1404
|
readonly Completed: "COMPLETED";
|
|
1405
|
+
readonly Error: "ERROR";
|
|
1400
1406
|
readonly InProgress: "IN_PROGRESS";
|
|
1401
1407
|
};
|
|
1402
1408
|
export type InclusivePriceCatalogValidationJobCompletionStatus = (typeof inclusivePriceCatalogValidationJobCompletionStatus)[keyof typeof inclusivePriceCatalogValidationJobCompletionStatus];
|
|
@@ -1845,11 +1851,41 @@ export declare const notificationActiveStatus: {
|
|
|
1845
1851
|
readonly Enabled: "ENABLED";
|
|
1846
1852
|
};
|
|
1847
1853
|
export type NotificationActiveStatus = (typeof notificationActiveStatus)[keyof typeof notificationActiveStatus];
|
|
1854
|
+
export declare const orderBillingAdjustmentFeeType: {
|
|
1855
|
+
readonly AdditionalTariffLines: "ADDITIONAL_TARIFF_LINES";
|
|
1856
|
+
readonly Adjustment: "ADJUSTMENT";
|
|
1857
|
+
readonly Advancement: "ADVANCEMENT";
|
|
1858
|
+
readonly BrokerageFee: "BROKERAGE_FEE";
|
|
1859
|
+
readonly Buffer: "BUFFER";
|
|
1860
|
+
readonly Cod: "COD";
|
|
1861
|
+
readonly Country: "COUNTRY";
|
|
1862
|
+
readonly CurrencyConversionFee: "CURRENCY_CONVERSION_FEE";
|
|
1863
|
+
readonly DdpServiceFee: "DDP_SERVICE_FEE";
|
|
1864
|
+
readonly Duty: "DUTY";
|
|
1865
|
+
readonly FxFee: "FX_FEE";
|
|
1866
|
+
readonly FxFeeNonRefundedAmounts: "FX_FEE_NON_REFUNDED_AMOUNTS";
|
|
1867
|
+
readonly InclusivePriceAdjustment: "INCLUSIVE_PRICE_ADJUSTMENT";
|
|
1868
|
+
readonly InclusivePricing: "INCLUSIVE_PRICING";
|
|
1869
|
+
readonly Item: "ITEM";
|
|
1870
|
+
readonly Other: "OTHER";
|
|
1871
|
+
readonly Shipping: "SHIPPING";
|
|
1872
|
+
readonly Tax: "TAX";
|
|
1873
|
+
readonly ZonosLandedCost: "ZONOS_LANDED_COST";
|
|
1874
|
+
readonly ZonosMerchantProcessing: "ZONOS_MERCHANT_PROCESSING";
|
|
1875
|
+
readonly ZonosTransaction: "ZONOS_TRANSACTION";
|
|
1876
|
+
};
|
|
1877
|
+
export type OrderBillingAdjustmentFeeType = (typeof orderBillingAdjustmentFeeType)[keyof typeof orderBillingAdjustmentFeeType];
|
|
1848
1878
|
export declare const orderCompleteBillingMethod: {
|
|
1849
1879
|
readonly BillingDgs: "BILLING_DGS";
|
|
1850
1880
|
readonly Legacy: "LEGACY";
|
|
1851
1881
|
};
|
|
1852
1882
|
export type OrderCompleteBillingMethod = (typeof orderCompleteBillingMethod)[keyof typeof orderCompleteBillingMethod];
|
|
1883
|
+
export declare const orderRefundSubtotalType: {
|
|
1884
|
+
readonly DutyTaxFee: "DUTY_TAX_FEE";
|
|
1885
|
+
readonly Item: "ITEM";
|
|
1886
|
+
readonly Shipping: "SHIPPING";
|
|
1887
|
+
};
|
|
1888
|
+
export type OrderRefundSubtotalType = (typeof orderRefundSubtotalType)[keyof typeof orderRefundSubtotalType];
|
|
1853
1889
|
export declare const orderStatus: {
|
|
1854
1890
|
readonly Canceled: "CANCELED";
|
|
1855
1891
|
readonly Completed: "COMPLETED";
|
|
@@ -1942,6 +1978,10 @@ export declare const partyType: {
|
|
|
1942
1978
|
readonly Payor: "PAYOR";
|
|
1943
1979
|
};
|
|
1944
1980
|
export type PartyType = (typeof partyType)[keyof typeof partyType];
|
|
1981
|
+
export declare const paymentProcessorCode: {
|
|
1982
|
+
readonly Stripe: "STRIPE";
|
|
1983
|
+
};
|
|
1984
|
+
export type PaymentProcessorCode = (typeof paymentProcessorCode)[keyof typeof paymentProcessorCode];
|
|
1945
1985
|
export declare const paymentType: {
|
|
1946
1986
|
readonly Card: "CARD";
|
|
1947
1987
|
readonly UsBankAccount: "US_BANK_ACCOUNT";
|
|
@@ -1988,6 +2028,11 @@ export declare const pickupCategory: {
|
|
|
1988
2028
|
readonly SameDayCity: "SAME_DAY_CITY";
|
|
1989
2029
|
};
|
|
1990
2030
|
export type PickupCategory = (typeof pickupCategory)[keyof typeof pickupCategory];
|
|
2031
|
+
export declare const priceAdjustmentType: {
|
|
2032
|
+
readonly Fixed: "FIXED";
|
|
2033
|
+
readonly Percentage: "PERCENTAGE";
|
|
2034
|
+
};
|
|
2035
|
+
export type PriceAdjustmentType = (typeof priceAdjustmentType)[keyof typeof priceAdjustmentType];
|
|
1991
2036
|
export declare const processingStatusCode: {
|
|
1992
2037
|
readonly Failed: "FAILED";
|
|
1993
2038
|
readonly Pending: "PENDING";
|
|
@@ -2397,7 +2442,16 @@ export type CalculateLandedCostMutation = {
|
|
|
2397
2442
|
}> | null;
|
|
2398
2443
|
itemCreateWorkflow: Array<{
|
|
2399
2444
|
amount: number;
|
|
2445
|
+
description: string | null;
|
|
2400
2446
|
id: string;
|
|
2447
|
+
imageUrl: string | null;
|
|
2448
|
+
name: string | null;
|
|
2449
|
+
quantity: number;
|
|
2450
|
+
restriction: {
|
|
2451
|
+
action: RestrictedItemAction;
|
|
2452
|
+
reason: string;
|
|
2453
|
+
} | null;
|
|
2454
|
+
sku: string | null;
|
|
2401
2455
|
}>;
|
|
2402
2456
|
landedCostCalculateWorkflow: Array<{
|
|
2403
2457
|
appliedAdjustments: Array<{
|
|
@@ -1593,6 +1593,12 @@ export const hsCodeValidation = {
|
|
|
1593
1593
|
|
|
1594
1594
|
export type HsCodeValidation =
|
|
1595
1595
|
(typeof hsCodeValidation)[keyof typeof hsCodeValidation];
|
|
1596
|
+
export const imageFileType = {
|
|
1597
|
+
Letterhead: 'LETTERHEAD',
|
|
1598
|
+
Signature: 'SIGNATURE',
|
|
1599
|
+
} as const;
|
|
1600
|
+
|
|
1601
|
+
export type ImageFileType = (typeof imageFileType)[keyof typeof imageFileType];
|
|
1596
1602
|
export const imageSlot = {
|
|
1597
1603
|
Image_1: 'IMAGE_1',
|
|
1598
1604
|
Image_2: 'IMAGE_2',
|
|
@@ -1621,6 +1627,7 @@ export type InclusivePriceCalculateJobType =
|
|
|
1621
1627
|
export const inclusivePriceCatalogValidationJobCompletionStatus = {
|
|
1622
1628
|
Archived: 'ARCHIVED',
|
|
1623
1629
|
Completed: 'COMPLETED',
|
|
1630
|
+
Error: 'ERROR',
|
|
1624
1631
|
InProgress: 'IN_PROGRESS',
|
|
1625
1632
|
} as const;
|
|
1626
1633
|
|
|
@@ -2181,6 +2188,33 @@ export const notificationActiveStatus = {
|
|
|
2181
2188
|
export type NotificationActiveStatus =
|
|
2182
2189
|
(typeof notificationActiveStatus)[keyof typeof notificationActiveStatus];
|
|
2183
2190
|
|
|
2191
|
+
export const orderBillingAdjustmentFeeType = {
|
|
2192
|
+
AdditionalTariffLines: 'ADDITIONAL_TARIFF_LINES',
|
|
2193
|
+
Adjustment: 'ADJUSTMENT',
|
|
2194
|
+
Advancement: 'ADVANCEMENT',
|
|
2195
|
+
BrokerageFee: 'BROKERAGE_FEE',
|
|
2196
|
+
Buffer: 'BUFFER',
|
|
2197
|
+
Cod: 'COD',
|
|
2198
|
+
Country: 'COUNTRY',
|
|
2199
|
+
CurrencyConversionFee: 'CURRENCY_CONVERSION_FEE',
|
|
2200
|
+
DdpServiceFee: 'DDP_SERVICE_FEE',
|
|
2201
|
+
Duty: 'DUTY',
|
|
2202
|
+
FxFee: 'FX_FEE',
|
|
2203
|
+
FxFeeNonRefundedAmounts: 'FX_FEE_NON_REFUNDED_AMOUNTS',
|
|
2204
|
+
InclusivePriceAdjustment: 'INCLUSIVE_PRICE_ADJUSTMENT',
|
|
2205
|
+
InclusivePricing: 'INCLUSIVE_PRICING',
|
|
2206
|
+
Item: 'ITEM',
|
|
2207
|
+
Other: 'OTHER',
|
|
2208
|
+
Shipping: 'SHIPPING',
|
|
2209
|
+
Tax: 'TAX',
|
|
2210
|
+
ZonosLandedCost: 'ZONOS_LANDED_COST',
|
|
2211
|
+
ZonosMerchantProcessing: 'ZONOS_MERCHANT_PROCESSING',
|
|
2212
|
+
ZonosTransaction: 'ZONOS_TRANSACTION',
|
|
2213
|
+
} as const;
|
|
2214
|
+
|
|
2215
|
+
export type OrderBillingAdjustmentFeeType =
|
|
2216
|
+
(typeof orderBillingAdjustmentFeeType)[keyof typeof orderBillingAdjustmentFeeType];
|
|
2217
|
+
|
|
2184
2218
|
export const orderCompleteBillingMethod = {
|
|
2185
2219
|
BillingDgs: 'BILLING_DGS',
|
|
2186
2220
|
Legacy: 'LEGACY',
|
|
@@ -2189,6 +2223,15 @@ export const orderCompleteBillingMethod = {
|
|
|
2189
2223
|
export type OrderCompleteBillingMethod =
|
|
2190
2224
|
(typeof orderCompleteBillingMethod)[keyof typeof orderCompleteBillingMethod];
|
|
2191
2225
|
|
|
2226
|
+
export const orderRefundSubtotalType = {
|
|
2227
|
+
DutyTaxFee: 'DUTY_TAX_FEE',
|
|
2228
|
+
Item: 'ITEM',
|
|
2229
|
+
Shipping: 'SHIPPING',
|
|
2230
|
+
} as const;
|
|
2231
|
+
|
|
2232
|
+
export type OrderRefundSubtotalType =
|
|
2233
|
+
(typeof orderRefundSubtotalType)[keyof typeof orderRefundSubtotalType];
|
|
2234
|
+
|
|
2192
2235
|
export const orderStatus = {
|
|
2193
2236
|
Canceled: 'CANCELED',
|
|
2194
2237
|
Completed: 'COMPLETED',
|
|
@@ -2311,6 +2354,12 @@ export const partyType = {
|
|
|
2311
2354
|
|
|
2312
2355
|
export type PartyType = (typeof partyType)[keyof typeof partyType];
|
|
2313
2356
|
|
|
2357
|
+
export const paymentProcessorCode = {
|
|
2358
|
+
Stripe: 'STRIPE',
|
|
2359
|
+
} as const;
|
|
2360
|
+
|
|
2361
|
+
export type PaymentProcessorCode =
|
|
2362
|
+
(typeof paymentProcessorCode)[keyof typeof paymentProcessorCode];
|
|
2314
2363
|
export const paymentType = {
|
|
2315
2364
|
Card: 'CARD',
|
|
2316
2365
|
UsBankAccount: 'US_BANK_ACCOUNT',
|
|
@@ -2370,6 +2419,13 @@ export const pickupCategory = {
|
|
|
2370
2419
|
|
|
2371
2420
|
export type PickupCategory =
|
|
2372
2421
|
(typeof pickupCategory)[keyof typeof pickupCategory];
|
|
2422
|
+
export const priceAdjustmentType = {
|
|
2423
|
+
Fixed: 'FIXED',
|
|
2424
|
+
Percentage: 'PERCENTAGE',
|
|
2425
|
+
} as const;
|
|
2426
|
+
|
|
2427
|
+
export type PriceAdjustmentType =
|
|
2428
|
+
(typeof priceAdjustmentType)[keyof typeof priceAdjustmentType];
|
|
2373
2429
|
export const processingStatusCode = {
|
|
2374
2430
|
Failed: 'FAILED',
|
|
2375
2431
|
Pending: 'PENDING',
|
|
@@ -2881,7 +2937,16 @@ export type CalculateLandedCostMutation = {
|
|
|
2881
2937
|
total: number;
|
|
2882
2938
|
};
|
|
2883
2939
|
}> | null;
|
|
2884
|
-
itemCreateWorkflow: Array<{
|
|
2940
|
+
itemCreateWorkflow: Array<{
|
|
2941
|
+
amount: number;
|
|
2942
|
+
description: string | null;
|
|
2943
|
+
id: string;
|
|
2944
|
+
imageUrl: string | null;
|
|
2945
|
+
name: string | null;
|
|
2946
|
+
quantity: number;
|
|
2947
|
+
restriction: { action: RestrictedItemAction; reason: string } | null;
|
|
2948
|
+
sku: string | null;
|
|
2949
|
+
}>;
|
|
2885
2950
|
landedCostCalculateWorkflow: Array<{
|
|
2886
2951
|
appliedAdjustments: Array<{
|
|
2887
2952
|
amount: number;
|
|
@@ -94,6 +94,7 @@ export declare const featureAspectKeyEnum: {
|
|
|
94
94
|
readonly FeatureAspect: "feature_aspect";
|
|
95
95
|
readonly LocaleMessage: "locale_message";
|
|
96
96
|
readonly NewCheckoutBeta: "new_checkout_beta";
|
|
97
|
+
readonly NewPayoutReport: "new_payout_report";
|
|
97
98
|
readonly PageAuditor: "page_auditor";
|
|
98
99
|
readonly PromptExplorer: "prompt_explorer";
|
|
99
100
|
readonly TeamAuditor: "team_auditor";
|
|
@@ -554,7 +555,7 @@ export type GetAudienceByAspectKeyQuery = {
|
|
|
554
555
|
};
|
|
555
556
|
export type LocaleCountryMessagesQuery = {
|
|
556
557
|
locale_countryCodesPage: Array<{
|
|
557
|
-
countryCodes: Array<string
|
|
558
|
+
countryCodes: Array<string>;
|
|
558
559
|
countryCodesPageMessageLinks: Array<{
|
|
559
560
|
id: number;
|
|
560
561
|
message: {
|
|
@@ -72,6 +72,7 @@ export const featureAspectKeyEnum = {
|
|
|
72
72
|
FeatureAspect: 'feature_aspect',
|
|
73
73
|
LocaleMessage: 'locale_message',
|
|
74
74
|
NewCheckoutBeta: 'new_checkout_beta',
|
|
75
|
+
NewPayoutReport: 'new_payout_report',
|
|
75
76
|
PageAuditor: 'page_auditor',
|
|
76
77
|
PromptExplorer: 'prompt_explorer',
|
|
77
78
|
TeamAuditor: 'team_auditor',
|
|
@@ -557,7 +558,7 @@ export type GetAudienceByAspectKeyQuery = {
|
|
|
557
558
|
|
|
558
559
|
export type LocaleCountryMessagesQuery = {
|
|
559
560
|
locale_countryCodesPage: Array<{
|
|
560
|
-
countryCodes: Array<string
|
|
561
|
+
countryCodes: Array<string>;
|
|
561
562
|
countryCodesPageMessageLinks: Array<{
|
|
562
563
|
id: number;
|
|
563
564
|
message: {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" style="display: block;">
|
|
2
|
+
<path d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-400)"></path>
|
|
3
|
+
<path d="M12.75 9a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V9Zm0 5.5a.75.75 0 0 0-1.5 0v.5a.75.75 0 0 0 1.5 0v-.5Z" fill="currentColor"></path>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg color="var(--zonos-elements-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" style="display: block;">
|
|
2
|
+
<path d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z" data-is-secondary-color="true" fill="var(--zonos-elements-blue-400)"></path>
|
|
3
|
+
<path d="M10.25 10.25a1.75 1.75 0 1 1 2.431 1.613c-.616.26-1.431.885-1.431 1.887a.75.75 0 0 0 1.5 0c0-.053.02-.128.108-.228.092-.104.236-.205.408-.278A3.25 3.25 0 1 0 8.75 10.25a.75.75 0 0 0 1.5 0Zm2.5 5.75a.75.75 0 0 0-1.5 0v.25a.75.75 0 0 0 1.5 0V16Z" fill="currentColor"></path>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg color="var(--zonos-elements-orange-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" style="display: block;">
|
|
2
|
+
<path d="M14.46 5.492c-1.014-2.027-3.906-2.027-4.92 0L4.276 16.02c-.914 1.83.416 3.98 2.46 3.98h10.528c2.044 0 3.374-2.151 2.46-3.98L14.46 5.492Z" data-is-secondary-color="true" fill="var(--zonos-elements-orange-400)"></path>
|
|
3
|
+
<path d="M12.75 10a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V10Zm0 5.5a.75.75 0 0 0-1.5 0v.5a.75.75 0 0 0 1.5 0v-.5Z" fill="currentColor"></path>
|
|
4
|
+
</svg>
|