@zonos/elements 1.3.39 → 1.3.41
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-c7212410.js → cart-497bb434.js} +300 -7
- package/dist/cjs/{getBorderRadius-074b46ef.js → getBorderRadius-4413e191.js} +1 -1
- package/dist/cjs/{index-b071017b.js → index-d56e0a8b.js} +242 -169
- package/dist/cjs/index.cjs.js +10 -4
- package/dist/cjs/{isDarkColor-371a3b1a.js → isDarkColor-4eb96a1e.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/paypal-e65a287a.js +461 -0
- package/dist/cjs/{submitGtag-7a679d92.js → sendErrorLog-c3c315a9.js} +2 -19
- package/dist/cjs/zonos-address_8.cjs.entry.js +11 -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 +4 -4
- package/dist/cjs/zonos-card.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +76 -38
- package/dist/cjs/zonos-checkout.cjs.entry.js +43 -70
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +15 -15
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/{zonos-country-select_3.cjs.entry.js → zonos-country-select_4.cjs.entry.js} +100 -14
- package/dist/cjs/zonos-elements.cjs.js +3 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -9
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-input.cjs.entry.js +7 -7
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +9 -9
- package/dist/cjs/zonos-link.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
- package/dist/cjs/{zonos-notification_2.cjs.entry.js → zonos-notification_3.cjs.entry.js} +59 -7
- 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/zonos-v-stack.cjs.entry.js +4 -4
- package/dist/cjs/{zonosStore-4c6c85da.js → zonosStore-56401fdb.js} +5 -1
- package/dist/collection/__tests__/build-utils/urlCheckOne.js +3 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +39 -8
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +37 -22
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +30 -60
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +1 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +8 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +14 -4
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-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-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- 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/common/zonos-virtual-scroll/zonos-virtual-scroll.css +46 -0
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +177 -0
- 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 +4 -4
- package/dist/collection/components/main/zonos-controller.js +22 -8
- package/dist/collection/components/paypal/zonos-paypal-payment.css +37 -0
- package/dist/collection/components/paypal/zonos-paypal-payment.js +92 -0
- package/dist/collection/components/store/checkout/cart.js +26 -1
- package/dist/collection/components/store/checkout/paypal.js +219 -0
- package/dist/collection/components/store/checkout/stripe.js +16 -4
- package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
- package/dist/collection/components/store/translationStore/strings.base.js +12 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
- package/dist/collection/components/store/translationStore/strings.french.js +12 -0
- package/dist/collection/components/store/translationStore/strings.german.js +12 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
- package/dist/collection/components/store/zonosStore.js +4 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +2 -3
- package/dist/collection/components/utils/api/getZonosSettings.js +3 -3
- package/dist/collection/components/utils/api/paypalCaptureOrder.js +8 -0
- package/dist/collection/components/utils/api/paypalCreateOrder.js +8 -0
- package/dist/collection/components/utils/getContrastColor.js +6 -2
- package/dist/collection/components/utils/handleFetch.js +6 -1
- package/dist/collection/components/utils/isContrastColor.js +7 -0
- package/dist/collection/environment.js +4 -5
- package/dist/collection/scripts/_getZonosQaUrl.js +4 -0
- package/dist/collection/scripts/_zonosBase.js +2 -0
- package/dist/collection/styles/stripe/addressRuleStyle.js +6 -0
- package/dist/collection/types/generated/graphql.customer.types.js +35 -0
- package/dist/esm/{cart-eb75b113.js → cart-f53c9f90.js} +296 -8
- package/dist/esm/{getBorderRadius-947c24de.js → getBorderRadius-3ba98361.js} +1 -1
- package/dist/esm/{index-3b46f3c3.js → index-86b8247e.js} +242 -169
- package/dist/esm/index.js +10 -4
- package/dist/esm/{isDarkColor-f8324c10.js → isDarkColor-3119e351.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/paypal-72296ae6.js +453 -0
- package/dist/esm/{submitGtag-0bc0baa0.js → sendErrorLog-f8d3ec4b.js} +3 -19
- package/dist/esm/zonos-address_8.entry.js +11 -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 +4 -4
- package/dist/esm/zonos-card.entry.js +3 -3
- package/dist/esm/zonos-cart-items_12.entry.js +63 -25
- package/dist/esm/zonos-checkout.entry.js +34 -61
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +15 -15
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/{zonos-country-select_3.entry.js → zonos-country-select_4.entry.js} +100 -15
- package/dist/esm/zonos-elements.js +4 -4
- package/dist/esm/zonos-hello-dialog.entry.js +9 -9
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-input.entry.js +7 -7
- package/dist/esm/zonos-language-select_2.entry.js +9 -9
- package/dist/esm/zonos-link.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +4 -4
- package/dist/esm/{zonos-notification_2.entry.js → zonos-notification_3.entry.js} +60 -9
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +4 -4
- package/dist/esm/{zonosStore-ba9e541e.js → zonosStore-8fc9ceb2.js} +5 -1
- package/dist/esm-es5/cart-f53c9f90.js +1 -0
- package/dist/esm-es5/{getBorderRadius-947c24de.js → getBorderRadius-3ba98361.js} +1 -1
- package/dist/esm-es5/index-86b8247e.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-f8324c10.js → isDarkColor-3119e351.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/paypal-72296ae6.js +17 -0
- package/dist/esm-es5/sendErrorLog-f8d3ec4b.js +1 -0
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- 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_4.entry.js +1 -0
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.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_3.entry.js +1 -0
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-ba9e541e.js → zonosStore-8fc9ceb2.js} +1 -1
- package/dist/scripts/index.d.ts +170 -6
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +8 -4
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -20
- package/dist/types/components/common/zonos-virtual-scroll/zonos-virtual-scroll.d.ts +32 -0
- package/dist/types/components/main/zonos-controller.d.ts +6 -0
- package/dist/types/components/paypal/zonos-paypal-payment.d.ts +17 -0
- package/dist/types/components/store/checkout/cart.d.ts +19 -1
- package/dist/types/components/store/checkout/paypal.d.ts +28 -0
- package/dist/types/components/store/checkout/stripe.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +4 -0
- package/dist/types/components/utils/api/getZonosSettings.d.ts +2 -0
- package/dist/types/components/utils/api/paypalCaptureOrder.d.ts +10 -0
- package/dist/types/components/utils/api/paypalCreateOrder.d.ts +9 -0
- package/dist/types/components/utils/handleFetch.d.ts +4 -0
- package/dist/types/components/utils/isContrastColor.d.ts +4 -0
- package/dist/types/components.d.ts +129 -6
- package/dist/types/scripts/_zonosBase.d.ts +9 -1
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/dist/types/types/checkout/CheckoutConfig.d.ts +14 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +71 -11
- package/dist/types/types/generated/graphql.customer.types.ts +103 -11
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-71882ac9.system.entry.js → p-0229282c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5821856c.js → p-04054425.js} +1 -1
- package/dist/zonos-elements/p-05cdd3b4.js +17 -0
- package/dist/zonos-elements/{p-a8b934c2.entry.js → p-0f9804e3.entry.js} +1 -1
- package/dist/zonos-elements/p-12266c9e.js +1 -0
- package/dist/zonos-elements/{p-01304a58.system.entry.js → p-14067782.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1a89c54a.js +1 -0
- package/dist/zonos-elements/{p-d2992457.system.entry.js → p-1e4f7997.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1ee2fa70.system.entry.js +1 -0
- package/dist/zonos-elements/{p-63a27875.entry.js → p-25633055.entry.js} +1 -1
- package/dist/zonos-elements/{p-e37440ad.system.js → p-40c21634.system.js} +1 -1
- package/dist/zonos-elements/p-4db5be24.system.entry.js +1 -0
- package/dist/zonos-elements/{p-da2e5289.system.entry.js → p-4f454a91.system.entry.js} +1 -1
- package/dist/zonos-elements/p-52947dab.system.entry.js +1 -0
- package/dist/zonos-elements/{p-62ed4236.entry.js → p-52fa9aab.entry.js} +1 -1
- package/dist/zonos-elements/{p-31b3d26b.js → p-52fb6876.js} +1 -1
- package/dist/zonos-elements/p-539974db.system.js +1 -0
- package/dist/zonos-elements/p-5922c099.entry.js +1 -0
- package/dist/zonos-elements/p-5b7da777.js +2 -0
- package/dist/zonos-elements/p-5fe10991.system.entry.js +1 -0
- package/dist/zonos-elements/p-678f1888.entry.js +1 -0
- package/dist/zonos-elements/p-67f22fbf.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9a1c0d02.js → p-6ac72711.js} +1 -1
- package/dist/zonos-elements/{p-ed333de6.system.entry.js → p-6bb0b7d2.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6de1c78a.entry.js +1 -0
- package/dist/zonos-elements/{p-d8c1eb99.entry.js → p-6de38759.entry.js} +1 -1
- package/dist/zonos-elements/{p-a21ec316.system.entry.js → p-6fbb4565.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6c3390b7.entry.js → p-706d2bad.entry.js} +1 -1
- package/dist/zonos-elements/{p-73ba4398.system.entry.js → p-717028a2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8acdf43b.system.entry.js → p-7833fa53.system.entry.js} +1 -1
- package/dist/zonos-elements/p-79fd4f3c.system.js +1 -0
- package/dist/zonos-elements/p-8809964a.system.js +1 -0
- package/dist/zonos-elements/{p-3541e6dd.entry.js → p-8b01aafb.entry.js} +1 -1
- package/dist/zonos-elements/{p-2aa72606.entry.js → p-9220f63d.entry.js} +1 -1
- package/dist/zonos-elements/{p-699a5376.entry.js → p-9420f9db.entry.js} +1 -1
- package/dist/zonos-elements/p-9525cc44.system.js +1 -0
- package/dist/zonos-elements/{p-c21802e9.entry.js → p-9a319774.entry.js} +1 -1
- package/dist/zonos-elements/{p-3523c3b4.entry.js → p-9d1f13c2.entry.js} +1 -1
- package/dist/zonos-elements/{p-c0fcc0fa.system.entry.js → p-9eadd9a7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-966ab4e7.system.entry.js → p-a3e2592b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f06bb776.system.entry.js → p-ab11cca6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b3e825dc.system.js +17 -0
- package/dist/zonos-elements/{p-9d29f3f4.system.entry.js → p-b689309d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c460665d.system.js +1 -0
- package/dist/zonos-elements/p-c4617501.entry.js +1 -0
- package/dist/zonos-elements/{p-b903af96.system.entry.js → p-c4bb2949.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c3619b3d.entry.js → p-c7301a88.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -0
- package/dist/zonos-elements/p-d86c89e3.entry.js +1 -0
- package/dist/zonos-elements/{p-e3c014ae.entry.js → p-dc368ad5.entry.js} +1 -1
- package/dist/zonos-elements/{p-18b28104.entry.js → p-de53d9c3.entry.js} +1 -1
- package/dist/zonos-elements/p-df69fa38.system.entry.js +1 -0
- package/dist/zonos-elements/{p-22882fd6.entry.js → p-e07bf9ea.entry.js} +1 -1
- package/dist/zonos-elements/{p-9de374a7.system.entry.js → p-e8f7fb29.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-59f37de3.entry.js → p-f35ee203.entry.js} +1 -1
- package/dist/zonos-elements/p-fd061229.system.js +2 -0
- package/dist/zonos-elements/p-fd54fbb9.system.entry.js +1 -0
- package/dist/zonos-elements/p-fdb4347f.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/loader/cdn.js +1 -2
- package/loader/index.cjs.js +1 -2
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -2
- package/loader/index.js +1 -2
- package/package.json +12 -11
- package/dist/esm-es5/cart-eb75b113.js +0 -1
- package/dist/esm-es5/index-3b46f3c3.js +0 -2
- package/dist/esm-es5/submitGtag-0bc0baa0.js +0 -1
- package/dist/esm-es5/zonos-country-select_3.entry.js +0 -1
- package/dist/esm-es5/zonos-notification_2.entry.js +0 -1
- package/dist/zonos-elements/p-02405211.system.entry.js +0 -1
- package/dist/zonos-elements/p-085548f2.entry.js +0 -1
- package/dist/zonos-elements/p-0b538ed4.system.js +0 -1
- package/dist/zonos-elements/p-2a45c837.system.entry.js +0 -1
- package/dist/zonos-elements/p-357322ea.system.entry.js +0 -1
- package/dist/zonos-elements/p-3f5e2e5c.system.entry.js +0 -1
- package/dist/zonos-elements/p-53acc999.js +0 -1
- package/dist/zonos-elements/p-548ac127.entry.js +0 -1
- package/dist/zonos-elements/p-5609876a.system.entry.js +0 -1
- package/dist/zonos-elements/p-6f9448bb.entry.js +0 -1
- package/dist/zonos-elements/p-70262120.system.js +0 -1
- package/dist/zonos-elements/p-878293fe.js +0 -1
- package/dist/zonos-elements/p-97d74f84.system.js +0 -1
- package/dist/zonos-elements/p-a393c1db.system.entry.js +0 -1
- package/dist/zonos-elements/p-a8cb25de.system.js +0 -1
- package/dist/zonos-elements/p-abe8ea12.system.js +0 -1
- package/dist/zonos-elements/p-ae04d3ff.entry.js +0 -1
- package/dist/zonos-elements/p-b684f8aa.system.entry.js +0 -1
- package/dist/zonos-elements/p-ce347974.js +0 -2
- package/dist/zonos-elements/p-d99232c5.system.js +0 -2
- package/dist/zonos-elements/p-e0bf9666.system.js +0 -1
- package/dist/zonos-elements/p-e1db1bc9.entry.js +0 -1
- package/dist/zonos-elements/p-e74ca4bc.entry.js +0 -1
|
@@ -390,10 +390,6 @@ export namespace Components {
|
|
|
390
390
|
* Whether or not the continue button is loading
|
|
391
391
|
*/
|
|
392
392
|
"continueLoading": boolean;
|
|
393
|
-
/**
|
|
394
|
-
* Error occurred during payment
|
|
395
|
-
*/
|
|
396
|
-
"paymentError": boolean;
|
|
397
393
|
/**
|
|
398
394
|
* Submit button main color
|
|
399
395
|
*/
|
|
@@ -844,6 +840,8 @@ export namespace Components {
|
|
|
844
840
|
*/
|
|
845
841
|
"titleText"?: string;
|
|
846
842
|
}
|
|
843
|
+
interface ZonosPaypalPayment {
|
|
844
|
+
}
|
|
847
845
|
interface ZonosRestState {
|
|
848
846
|
/**
|
|
849
847
|
* The subtitle of the rest state
|
|
@@ -961,6 +959,36 @@ export namespace Components {
|
|
|
961
959
|
*/
|
|
962
960
|
"spacing": GridSpacing;
|
|
963
961
|
}
|
|
962
|
+
/**
|
|
963
|
+
* The idea is from
|
|
964
|
+
* @ref https://github.com/beenotung/stencil-virtual-scroll/blob/master/src/components/virtual-scroll-list/virtual-scroll-list.scss
|
|
965
|
+
* @ref https://github.dev/ionic-team/ionic-framework/blob/v6.7.5/core/src/components/virtual-scroll/virtual-scroll.tsx
|
|
966
|
+
*/
|
|
967
|
+
interface ZonosVirtualScroll {
|
|
968
|
+
/**
|
|
969
|
+
* Height that is used as a fallback if height is not provided
|
|
970
|
+
*/
|
|
971
|
+
"fallbackItemHeight": number;
|
|
972
|
+
/**
|
|
973
|
+
* Heights list of each item
|
|
974
|
+
*/
|
|
975
|
+
"itemHeights": number[];
|
|
976
|
+
/**
|
|
977
|
+
* Width of each item
|
|
978
|
+
*/
|
|
979
|
+
"itemWidth"?: number;
|
|
980
|
+
/**
|
|
981
|
+
* Render item
|
|
982
|
+
*/
|
|
983
|
+
"renderItem": (
|
|
984
|
+
itemIndex: number,
|
|
985
|
+
) =>
|
|
986
|
+
| HTMLElement
|
|
987
|
+
| Promise<HTMLElement>
|
|
988
|
+
| HTMLElement[]
|
|
989
|
+
| Promise<HTMLElement[]>
|
|
990
|
+
| Promise<HTMLElement>[];
|
|
991
|
+
}
|
|
964
992
|
}
|
|
965
993
|
export interface ZonosAddressCustomEvent<T> extends CustomEvent<T> {
|
|
966
994
|
detail: T;
|
|
@@ -1010,6 +1038,10 @@ export interface ZonosInputCustomEvent<T> extends CustomEvent<T> {
|
|
|
1010
1038
|
detail: T;
|
|
1011
1039
|
target: HTMLZonosInputElement;
|
|
1012
1040
|
}
|
|
1041
|
+
export interface ZonosPaypalPaymentCustomEvent<T> extends CustomEvent<T> {
|
|
1042
|
+
detail: T;
|
|
1043
|
+
target: HTMLZonosPaypalPaymentElement;
|
|
1044
|
+
}
|
|
1013
1045
|
export interface ZonosShippingCustomEvent<T> extends CustomEvent<T> {
|
|
1014
1046
|
detail: T;
|
|
1015
1047
|
target: HTMLZonosShippingElement;
|
|
@@ -1167,6 +1199,8 @@ declare global {
|
|
|
1167
1199
|
};
|
|
1168
1200
|
interface HTMLZonosCheckoutPaymentElementEventMap {
|
|
1169
1201
|
"continueClicked": void;
|
|
1202
|
+
"paypalSessionFailed": void;
|
|
1203
|
+
"paypalSessionDone": string;
|
|
1170
1204
|
}
|
|
1171
1205
|
interface HTMLZonosCheckoutPaymentElement extends Components.ZonosCheckoutPayment, HTMLStencilElement {
|
|
1172
1206
|
addEventListener<K extends keyof HTMLZonosCheckoutPaymentElementEventMap>(type: K, listener: (this: HTMLZonosCheckoutPaymentElement, ev: ZonosCheckoutPaymentCustomEvent<HTMLZonosCheckoutPaymentElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1219,6 +1253,7 @@ declare global {
|
|
|
1219
1253
|
new (): HTMLZonosConfirmDialogElement;
|
|
1220
1254
|
};
|
|
1221
1255
|
interface HTMLZonosControllerElementEventMap {
|
|
1256
|
+
"paypalInitEvent": { paypalClientId: string };
|
|
1222
1257
|
"stripeInitEvent": { publishableKey: string };
|
|
1223
1258
|
}
|
|
1224
1259
|
interface HTMLZonosControllerElement extends Components.ZonosController, HTMLStencilElement {
|
|
@@ -1375,6 +1410,24 @@ declare global {
|
|
|
1375
1410
|
prototype: HTMLZonosPaymentElement;
|
|
1376
1411
|
new (): HTMLZonosPaymentElement;
|
|
1377
1412
|
};
|
|
1413
|
+
interface HTMLZonosPaypalPaymentElementEventMap {
|
|
1414
|
+
"paypalSessionDone": { orderId: string };
|
|
1415
|
+
"paypalSessionFail": void;
|
|
1416
|
+
}
|
|
1417
|
+
interface HTMLZonosPaypalPaymentElement extends Components.ZonosPaypalPayment, HTMLStencilElement {
|
|
1418
|
+
addEventListener<K extends keyof HTMLZonosPaypalPaymentElementEventMap>(type: K, listener: (this: HTMLZonosPaypalPaymentElement, ev: ZonosPaypalPaymentCustomEvent<HTMLZonosPaypalPaymentElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1419
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1420
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1421
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1422
|
+
removeEventListener<K extends keyof HTMLZonosPaypalPaymentElementEventMap>(type: K, listener: (this: HTMLZonosPaypalPaymentElement, ev: ZonosPaypalPaymentCustomEvent<HTMLZonosPaypalPaymentElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1423
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1424
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1425
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1426
|
+
}
|
|
1427
|
+
var HTMLZonosPaypalPaymentElement: {
|
|
1428
|
+
prototype: HTMLZonosPaypalPaymentElement;
|
|
1429
|
+
new (): HTMLZonosPaypalPaymentElement;
|
|
1430
|
+
};
|
|
1378
1431
|
interface HTMLZonosRestStateElement extends Components.ZonosRestState, HTMLStencilElement {
|
|
1379
1432
|
}
|
|
1380
1433
|
var HTMLZonosRestStateElement: {
|
|
@@ -1451,6 +1504,17 @@ declare global {
|
|
|
1451
1504
|
prototype: HTMLZonosVStackElement;
|
|
1452
1505
|
new (): HTMLZonosVStackElement;
|
|
1453
1506
|
};
|
|
1507
|
+
/**
|
|
1508
|
+
* The idea is from
|
|
1509
|
+
* @ref https://github.com/beenotung/stencil-virtual-scroll/blob/master/src/components/virtual-scroll-list/virtual-scroll-list.scss
|
|
1510
|
+
* @ref https://github.dev/ionic-team/ionic-framework/blob/v6.7.5/core/src/components/virtual-scroll/virtual-scroll.tsx
|
|
1511
|
+
*/
|
|
1512
|
+
interface HTMLZonosVirtualScrollElement extends Components.ZonosVirtualScroll, HTMLStencilElement {
|
|
1513
|
+
}
|
|
1514
|
+
var HTMLZonosVirtualScrollElement: {
|
|
1515
|
+
prototype: HTMLZonosVirtualScrollElement;
|
|
1516
|
+
new (): HTMLZonosVirtualScrollElement;
|
|
1517
|
+
};
|
|
1454
1518
|
interface HTMLElementTagNameMap {
|
|
1455
1519
|
"zonos-address": HTMLZonosAddressElement;
|
|
1456
1520
|
"zonos-address-display": HTMLZonosAddressDisplayElement;
|
|
@@ -1489,6 +1553,7 @@ declare global {
|
|
|
1489
1553
|
"zonos-logo": HTMLZonosLogoElement;
|
|
1490
1554
|
"zonos-notification": HTMLZonosNotificationElement;
|
|
1491
1555
|
"zonos-payment": HTMLZonosPaymentElement;
|
|
1556
|
+
"zonos-paypal-payment": HTMLZonosPaypalPaymentElement;
|
|
1492
1557
|
"zonos-rest-state": HTMLZonosRestStateElement;
|
|
1493
1558
|
"zonos-review": HTMLZonosReviewElement;
|
|
1494
1559
|
"zonos-select-dialog-header": HTMLZonosSelectDialogHeaderElement;
|
|
@@ -1498,6 +1563,7 @@ declare global {
|
|
|
1498
1563
|
"zonos-text": HTMLZonosTextElement;
|
|
1499
1564
|
"zonos-tooltip": HTMLZonosTooltipElement;
|
|
1500
1565
|
"zonos-v-stack": HTMLZonosVStackElement;
|
|
1566
|
+
"zonos-virtual-scroll": HTMLZonosVirtualScrollElement;
|
|
1501
1567
|
}
|
|
1502
1568
|
}
|
|
1503
1569
|
declare namespace LocalJSX {
|
|
@@ -1864,9 +1930,13 @@ declare namespace LocalJSX {
|
|
|
1864
1930
|
*/
|
|
1865
1931
|
"onContinueClicked"?: (event: ZonosCheckoutPaymentCustomEvent<void>) => void;
|
|
1866
1932
|
/**
|
|
1867
|
-
*
|
|
1933
|
+
* Event to emit when the paypal session is done
|
|
1868
1934
|
*/
|
|
1869
|
-
"
|
|
1935
|
+
"onPaypalSessionDone"?: (event: ZonosCheckoutPaymentCustomEvent<string>) => void;
|
|
1936
|
+
/**
|
|
1937
|
+
* Event to emit when the paypal session failed
|
|
1938
|
+
*/
|
|
1939
|
+
"onPaypalSessionFailed"?: (event: ZonosCheckoutPaymentCustomEvent<void>) => void;
|
|
1870
1940
|
/**
|
|
1871
1941
|
* Submit button main color
|
|
1872
1942
|
*/
|
|
@@ -1970,6 +2040,10 @@ declare namespace LocalJSX {
|
|
|
1970
2040
|
* The zonos config object
|
|
1971
2041
|
*/
|
|
1972
2042
|
"config": LoadZonosParamsConfig;
|
|
2043
|
+
/**
|
|
2044
|
+
* Event emitted to initialize paypal
|
|
2045
|
+
*/
|
|
2046
|
+
"onPaypalInitEvent"?: (event: ZonosControllerCustomEvent<{ paypalClientId: string }>) => void;
|
|
1973
2047
|
/**
|
|
1974
2048
|
* Event emitted when stripe is initialized
|
|
1975
2049
|
*/
|
|
@@ -2271,6 +2345,16 @@ declare namespace LocalJSX {
|
|
|
2271
2345
|
*/
|
|
2272
2346
|
"titleText"?: string;
|
|
2273
2347
|
}
|
|
2348
|
+
interface ZonosPaypalPayment {
|
|
2349
|
+
/**
|
|
2350
|
+
* Event to emit when the paypal session is done
|
|
2351
|
+
*/
|
|
2352
|
+
"onPaypalSessionDone"?: (event: ZonosPaypalPaymentCustomEvent<{ orderId: string }>) => void;
|
|
2353
|
+
/**
|
|
2354
|
+
* Event to emit when the paypal session is failed
|
|
2355
|
+
*/
|
|
2356
|
+
"onPaypalSessionFail"?: (event: ZonosPaypalPaymentCustomEvent<void>) => void;
|
|
2357
|
+
}
|
|
2274
2358
|
interface ZonosRestState {
|
|
2275
2359
|
/**
|
|
2276
2360
|
* The subtitle of the rest state
|
|
@@ -2396,6 +2480,36 @@ declare namespace LocalJSX {
|
|
|
2396
2480
|
*/
|
|
2397
2481
|
"spacing"?: GridSpacing;
|
|
2398
2482
|
}
|
|
2483
|
+
/**
|
|
2484
|
+
* The idea is from
|
|
2485
|
+
* @ref https://github.com/beenotung/stencil-virtual-scroll/blob/master/src/components/virtual-scroll-list/virtual-scroll-list.scss
|
|
2486
|
+
* @ref https://github.dev/ionic-team/ionic-framework/blob/v6.7.5/core/src/components/virtual-scroll/virtual-scroll.tsx
|
|
2487
|
+
*/
|
|
2488
|
+
interface ZonosVirtualScroll {
|
|
2489
|
+
/**
|
|
2490
|
+
* Height that is used as a fallback if height is not provided
|
|
2491
|
+
*/
|
|
2492
|
+
"fallbackItemHeight": number;
|
|
2493
|
+
/**
|
|
2494
|
+
* Heights list of each item
|
|
2495
|
+
*/
|
|
2496
|
+
"itemHeights": number[];
|
|
2497
|
+
/**
|
|
2498
|
+
* Width of each item
|
|
2499
|
+
*/
|
|
2500
|
+
"itemWidth"?: number;
|
|
2501
|
+
/**
|
|
2502
|
+
* Render item
|
|
2503
|
+
*/
|
|
2504
|
+
"renderItem": (
|
|
2505
|
+
itemIndex: number,
|
|
2506
|
+
) =>
|
|
2507
|
+
| HTMLElement
|
|
2508
|
+
| Promise<HTMLElement>
|
|
2509
|
+
| HTMLElement[]
|
|
2510
|
+
| Promise<HTMLElement[]>
|
|
2511
|
+
| Promise<HTMLElement>[];
|
|
2512
|
+
}
|
|
2399
2513
|
interface IntrinsicElements {
|
|
2400
2514
|
"zonos-address": ZonosAddress;
|
|
2401
2515
|
"zonos-address-display": ZonosAddressDisplay;
|
|
@@ -2434,6 +2548,7 @@ declare namespace LocalJSX {
|
|
|
2434
2548
|
"zonos-logo": ZonosLogo;
|
|
2435
2549
|
"zonos-notification": ZonosNotification;
|
|
2436
2550
|
"zonos-payment": ZonosPayment;
|
|
2551
|
+
"zonos-paypal-payment": ZonosPaypalPayment;
|
|
2437
2552
|
"zonos-rest-state": ZonosRestState;
|
|
2438
2553
|
"zonos-review": ZonosReview;
|
|
2439
2554
|
"zonos-select-dialog-header": ZonosSelectDialogHeader;
|
|
@@ -2443,6 +2558,7 @@ declare namespace LocalJSX {
|
|
|
2443
2558
|
"zonos-text": ZonosText;
|
|
2444
2559
|
"zonos-tooltip": ZonosTooltip;
|
|
2445
2560
|
"zonos-v-stack": ZonosVStack;
|
|
2561
|
+
"zonos-virtual-scroll": ZonosVirtualScroll;
|
|
2446
2562
|
}
|
|
2447
2563
|
}
|
|
2448
2564
|
export { LocalJSX as JSX };
|
|
@@ -2486,6 +2602,7 @@ declare module "@stencil/core" {
|
|
|
2486
2602
|
"zonos-logo": LocalJSX.ZonosLogo & JSXBase.HTMLAttributes<HTMLZonosLogoElement>;
|
|
2487
2603
|
"zonos-notification": LocalJSX.ZonosNotification & JSXBase.HTMLAttributes<HTMLZonosNotificationElement>;
|
|
2488
2604
|
"zonos-payment": LocalJSX.ZonosPayment & JSXBase.HTMLAttributes<HTMLZonosPaymentElement>;
|
|
2605
|
+
"zonos-paypal-payment": LocalJSX.ZonosPaypalPayment & JSXBase.HTMLAttributes<HTMLZonosPaypalPaymentElement>;
|
|
2489
2606
|
"zonos-rest-state": LocalJSX.ZonosRestState & JSXBase.HTMLAttributes<HTMLZonosRestStateElement>;
|
|
2490
2607
|
"zonos-review": LocalJSX.ZonosReview & JSXBase.HTMLAttributes<HTMLZonosReviewElement>;
|
|
2491
2608
|
"zonos-select-dialog-header": LocalJSX.ZonosSelectDialogHeader & JSXBase.HTMLAttributes<HTMLZonosSelectDialogHeaderElement>;
|
|
@@ -2495,6 +2612,12 @@ declare module "@stencil/core" {
|
|
|
2495
2612
|
"zonos-text": LocalJSX.ZonosText & JSXBase.HTMLAttributes<HTMLZonosTextElement>;
|
|
2496
2613
|
"zonos-tooltip": LocalJSX.ZonosTooltip & JSXBase.HTMLAttributes<HTMLZonosTooltipElement>;
|
|
2497
2614
|
"zonos-v-stack": LocalJSX.ZonosVStack & JSXBase.HTMLAttributes<HTMLZonosVStackElement>;
|
|
2615
|
+
/**
|
|
2616
|
+
* The idea is from
|
|
2617
|
+
* @ref https://github.com/beenotung/stencil-virtual-scroll/blob/master/src/components/virtual-scroll-list/virtual-scroll-list.scss
|
|
2618
|
+
* @ref https://github.dev/ionic-team/ionic-framework/blob/v6.7.5/core/src/components/virtual-scroll/virtual-scroll.tsx
|
|
2619
|
+
*/
|
|
2620
|
+
"zonos-virtual-scroll": LocalJSX.ZonosVirtualScroll & JSXBase.HTMLAttributes<HTMLZonosVirtualScrollElement>;
|
|
2498
2621
|
}
|
|
2499
2622
|
}
|
|
2500
2623
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { PayPalNamespace } from '@paypal/paypal-js';
|
|
1
2
|
import type { Stripe } from '@stripe/stripe-js';
|
|
2
3
|
import type { AppearanceConfig } from "../components/store/zonosStore";
|
|
3
4
|
import { type InjectScriptType } from "./_getNextFallbackUrl";
|
|
4
5
|
import type { NotificationInit } from "../types/index";
|
|
5
6
|
import type { TempCart } from "../types/checkout/api/TempCart";
|
|
6
7
|
import type { CheckoutConfig } from "../types/checkout/CheckoutConfig";
|
|
7
|
-
import type { CountryCode, CurrencyCode } from "../types/generated/graphql.customer.types";
|
|
8
|
+
import type { CountryCode, CurrencyCode, PaypalMockResponse } from "../types/generated/graphql.customer.types";
|
|
8
9
|
import type { HelloConfig } from "../types/hello/HelloConfig";
|
|
9
10
|
export declare const MAIN_LOAD_CDN_TYPE: InjectScriptType;
|
|
10
11
|
/**
|
|
@@ -105,6 +106,10 @@ export type LoadZonosParams = LoadZonosParamsConfig & {
|
|
|
105
106
|
zonosApiKey: string;
|
|
106
107
|
};
|
|
107
108
|
export interface Zonos {
|
|
109
|
+
/**
|
|
110
|
+
* Mock error response for Paypal. Mainly used for testing purposes
|
|
111
|
+
*/
|
|
112
|
+
_paypalMockResponse: PaypalMockResponse | null;
|
|
108
113
|
/**
|
|
109
114
|
* Toggle debug mode (add query param 'zonosDebug=1' to url)
|
|
110
115
|
* @default false
|
|
@@ -115,6 +120,7 @@ export interface Zonos {
|
|
|
115
120
|
isNpm: boolean;
|
|
116
121
|
/** Flag if already alerted when preview domain is defined and it's connecting production environment */
|
|
117
122
|
modeAlerted: boolean;
|
|
123
|
+
paypal: PayPalNamespace | null;
|
|
118
124
|
storeId: number;
|
|
119
125
|
/** Stripe instance */
|
|
120
126
|
stripe: Stripe;
|
|
@@ -142,6 +148,7 @@ export declare abstract class Zonos {
|
|
|
142
148
|
static doneInit: boolean;
|
|
143
149
|
static debug: boolean;
|
|
144
150
|
static zonosConversionTest: boolean;
|
|
151
|
+
static _paypalMockResponse: PaypalMockResponse | null;
|
|
145
152
|
static isBigCommerce: boolean;
|
|
146
153
|
/**
|
|
147
154
|
* By default, the package will load from npm
|
|
@@ -151,6 +158,7 @@ export declare abstract class Zonos {
|
|
|
151
158
|
static version: string;
|
|
152
159
|
static modeAlerted: boolean;
|
|
153
160
|
static tempCartData: TempCart | null;
|
|
161
|
+
static paypal: PayPalNamespace | null;
|
|
154
162
|
static getCurrentTimestamp: () => number;
|
|
155
163
|
private static zonosController;
|
|
156
164
|
static init: ({ appearance, checkoutSettings, currencyConverter, helloSettings, onCountryChange, overrideCurrencyFormat, storeId, zonosApiKey, }: LoadZonosParams) => Promise<void>;
|
|
@@ -768,6 +768,7 @@ export declare namespace JSXBase {
|
|
|
768
768
|
hrefLang?: string;
|
|
769
769
|
hreflang?: string;
|
|
770
770
|
media?: string;
|
|
771
|
+
ping?: string;
|
|
771
772
|
rel?: string;
|
|
772
773
|
target?: string;
|
|
773
774
|
referrerPolicy?: ReferrerPolicy;
|
|
@@ -794,7 +795,6 @@ export declare namespace JSXBase {
|
|
|
794
795
|
cite?: string;
|
|
795
796
|
}
|
|
796
797
|
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
797
|
-
autoFocus?: boolean;
|
|
798
798
|
disabled?: boolean;
|
|
799
799
|
form?: string;
|
|
800
800
|
formAction?: string;
|
|
@@ -921,8 +921,6 @@ export declare namespace JSXBase {
|
|
|
921
921
|
autocapitalize?: string;
|
|
922
922
|
autoComplete?: string;
|
|
923
923
|
autocomplete?: string;
|
|
924
|
-
autoFocus?: boolean;
|
|
925
|
-
autofocus?: boolean | string;
|
|
926
924
|
capture?: string;
|
|
927
925
|
checked?: boolean;
|
|
928
926
|
crossOrigin?: string;
|
|
@@ -979,8 +977,6 @@ export declare namespace JSXBase {
|
|
|
979
977
|
popoverTarget?: string;
|
|
980
978
|
}
|
|
981
979
|
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
982
|
-
autoFocus?: boolean;
|
|
983
|
-
autofocus?: boolean | string;
|
|
984
980
|
challenge?: string;
|
|
985
981
|
disabled?: boolean;
|
|
986
982
|
form?: string;
|
|
@@ -993,7 +989,6 @@ export declare namespace JSXBase {
|
|
|
993
989
|
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
994
990
|
form?: string;
|
|
995
991
|
htmlFor?: string;
|
|
996
|
-
htmlfor?: string;
|
|
997
992
|
}
|
|
998
993
|
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
999
994
|
value?: string | string[] | number;
|
|
@@ -1104,7 +1099,6 @@ export declare namespace JSXBase {
|
|
|
1104
1099
|
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1105
1100
|
form?: string;
|
|
1106
1101
|
htmlFor?: string;
|
|
1107
|
-
htmlfor?: string;
|
|
1108
1102
|
name?: string;
|
|
1109
1103
|
}
|
|
1110
1104
|
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
@@ -1129,7 +1123,6 @@ export declare namespace JSXBase {
|
|
|
1129
1123
|
type?: string;
|
|
1130
1124
|
}
|
|
1131
1125
|
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1132
|
-
autoFocus?: boolean;
|
|
1133
1126
|
disabled?: boolean;
|
|
1134
1127
|
form?: string;
|
|
1135
1128
|
multiple?: boolean;
|
|
@@ -1164,8 +1157,6 @@ export declare namespace JSXBase {
|
|
|
1164
1157
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1165
1158
|
autoComplete?: string;
|
|
1166
1159
|
autocomplete?: string;
|
|
1167
|
-
autoFocus?: boolean;
|
|
1168
|
-
autofocus?: boolean | string;
|
|
1169
1160
|
cols?: number;
|
|
1170
1161
|
disabled?: boolean;
|
|
1171
1162
|
form?: string;
|
|
@@ -1218,6 +1209,8 @@ export declare namespace JSXBase {
|
|
|
1218
1209
|
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1219
1210
|
innerHTML?: string;
|
|
1220
1211
|
accessKey?: string;
|
|
1212
|
+
autoFocus?: boolean;
|
|
1213
|
+
autofocus?: boolean | string;
|
|
1221
1214
|
class?: string | {
|
|
1222
1215
|
[className: string]: boolean;
|
|
1223
1216
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CartItem } from "../../components/store/checkout/cart";
|
|
2
2
|
import type { BuildLandedCostParams, BuildLandedCostResponse } from "../../components/utils/api/triggerBuildLandedCost";
|
|
3
|
-
import type { AnalyticsProviderStatus, AnalyticsProviderType, CheckoutSubscriptionStatus, CheckoutSuccessBehavior, CheckoutVisibilityStatus, CountryCode, CurrencyCode, GetOrderQuery, NotificationActiveStatus } from "../generated/graphql.customer.types";
|
|
3
|
+
import type { AnalyticsProviderStatus, AnalyticsProviderType, CheckoutSubscriptionStatus, CheckoutSuccessBehavior, CheckoutVisibilityStatus, CountryCode, CurrencyCode, ExternalPaymentMethodStatus, ExternalPaymentMethodType, ExternalServiceTokenType, GetOrderQuery, Mode, NotificationActiveStatus } from "../generated/graphql.customer.types";
|
|
4
4
|
export type ZonosOrder = GetOrderQuery['order'];
|
|
5
5
|
export type { BuildLandedCostParams, BuildLandedCostResponse };
|
|
6
6
|
export type BuildCardDetailParams = {
|
|
@@ -22,6 +22,19 @@ export type CheckoutConfig = {
|
|
|
22
22
|
* @note if set to true, we will not enable or disable the place order button
|
|
23
23
|
*/
|
|
24
24
|
disablePlaceOrderButtonActivation?: boolean;
|
|
25
|
+
externalPaymentMethods: Array<{
|
|
26
|
+
status: ExternalPaymentMethodStatus;
|
|
27
|
+
type: ExternalPaymentMethodType;
|
|
28
|
+
}> | null;
|
|
29
|
+
externalServiceTokens: {
|
|
30
|
+
token: string;
|
|
31
|
+
type: ExternalServiceTokenType;
|
|
32
|
+
}[];
|
|
33
|
+
/**
|
|
34
|
+
* Test mode for checkout (sandbox or production)
|
|
35
|
+
* @default TEST
|
|
36
|
+
*/
|
|
37
|
+
mode: Mode;
|
|
25
38
|
orderNotifications: {
|
|
26
39
|
abandonedCart: {
|
|
27
40
|
delay: number;
|
|
@@ -72,6 +72,9 @@ export declare const accountingFeeType: {
|
|
|
72
72
|
readonly Item: "ITEM";
|
|
73
73
|
readonly LandedCostGuarantee: "LANDED_COST_GUARANTEE";
|
|
74
74
|
readonly MerchantProcessing: "MERCHANT_PROCESSING";
|
|
75
|
+
readonly PaypalCancel: "PAYPAL_CANCEL";
|
|
76
|
+
readonly PaypalOrder: "PAYPAL_ORDER";
|
|
77
|
+
readonly PaypalRefund: "PAYPAL_REFUND";
|
|
75
78
|
readonly Shipping: "SHIPPING";
|
|
76
79
|
readonly Transaction: "TRANSACTION";
|
|
77
80
|
};
|
|
@@ -373,6 +376,13 @@ export declare const checkoutVisibilityStatus: {
|
|
|
373
376
|
readonly Enabled: "ENABLED";
|
|
374
377
|
};
|
|
375
378
|
export type CheckoutVisibilityStatus = (typeof checkoutVisibilityStatus)[keyof typeof checkoutVisibilityStatus];
|
|
379
|
+
export declare const classificationBulkExportJobStatus: {
|
|
380
|
+
readonly Completed: "COMPLETED";
|
|
381
|
+
readonly Error: "ERROR";
|
|
382
|
+
readonly Initialized: "INITIALIZED";
|
|
383
|
+
readonly Processing: "PROCESSING";
|
|
384
|
+
};
|
|
385
|
+
export type ClassificationBulkExportJobStatus = (typeof classificationBulkExportJobStatus)[keyof typeof classificationBulkExportJobStatus];
|
|
376
386
|
export declare const classificationBulkJobStatus: {
|
|
377
387
|
readonly Classified: "CLASSIFIED";
|
|
378
388
|
readonly Completed: "COMPLETED";
|
|
@@ -443,6 +453,12 @@ export declare const collectUploadStatus: {
|
|
|
443
453
|
readonly SucceededWithErrors: "SUCCEEDED_WITH_ERRORS";
|
|
444
454
|
};
|
|
445
455
|
export type CollectUploadStatus = (typeof collectUploadStatus)[keyof typeof collectUploadStatus];
|
|
456
|
+
export declare const commercialInvoiceImageCarrier: {
|
|
457
|
+
readonly Dhl: "DHL";
|
|
458
|
+
readonly Fedex: "FEDEX";
|
|
459
|
+
readonly Ups: "UPS";
|
|
460
|
+
};
|
|
461
|
+
export type CommercialInvoiceImageCarrier = (typeof commercialInvoiceImageCarrier)[keyof typeof commercialInvoiceImageCarrier];
|
|
446
462
|
export declare const confidenceScoreDisplayStatus: {
|
|
447
463
|
readonly Disabled: "DISABLED";
|
|
448
464
|
readonly Enabled: "ENABLED";
|
|
@@ -1340,7 +1356,17 @@ export declare const exportJobStatus: {
|
|
|
1340
1356
|
readonly Processing: "PROCESSING";
|
|
1341
1357
|
};
|
|
1342
1358
|
export type ExportJobStatus = (typeof exportJobStatus)[keyof typeof exportJobStatus];
|
|
1359
|
+
export declare const externalPaymentMethodStatus: {
|
|
1360
|
+
readonly Disabled: "DISABLED";
|
|
1361
|
+
readonly Enabled: "ENABLED";
|
|
1362
|
+
};
|
|
1363
|
+
export type ExternalPaymentMethodStatus = (typeof externalPaymentMethodStatus)[keyof typeof externalPaymentMethodStatus];
|
|
1364
|
+
export declare const externalPaymentMethodType: {
|
|
1365
|
+
readonly Paypal: "PAYPAL";
|
|
1366
|
+
};
|
|
1367
|
+
export type ExternalPaymentMethodType = (typeof externalPaymentMethodType)[keyof typeof externalPaymentMethodType];
|
|
1343
1368
|
export declare const externalServiceTokenType: {
|
|
1369
|
+
readonly PaypalClientId: "PAYPAL_CLIENT_ID";
|
|
1344
1370
|
readonly StripePublishableToken: "STRIPE_PUBLISHABLE_TOKEN";
|
|
1345
1371
|
};
|
|
1346
1372
|
export type ExternalServiceTokenType = (typeof externalServiceTokenType)[keyof typeof externalServiceTokenType];
|
|
@@ -2064,6 +2090,7 @@ export declare const partyType: {
|
|
|
2064
2090
|
};
|
|
2065
2091
|
export type PartyType = (typeof partyType)[keyof typeof partyType];
|
|
2066
2092
|
export declare const paymentProcessorCode: {
|
|
2093
|
+
readonly Paypal: "PAYPAL";
|
|
2067
2094
|
readonly Stripe: "STRIPE";
|
|
2068
2095
|
};
|
|
2069
2096
|
export type PaymentProcessorCode = (typeof paymentProcessorCode)[keyof typeof paymentProcessorCode];
|
|
@@ -2072,6 +2099,12 @@ export declare const paymentType: {
|
|
|
2072
2099
|
readonly UsBankAccount: "US_BANK_ACCOUNT";
|
|
2073
2100
|
};
|
|
2074
2101
|
export type PaymentType = (typeof paymentType)[keyof typeof paymentType];
|
|
2102
|
+
export declare const paypalMockResponse: {
|
|
2103
|
+
readonly InstrumentDeclined: "INSTRUMENT_DECLINED";
|
|
2104
|
+
readonly InternalServerError: "INTERNAL_SERVER_ERROR";
|
|
2105
|
+
readonly TransactionRefused: "TRANSACTION_REFUSED";
|
|
2106
|
+
};
|
|
2107
|
+
export type PaypalMockResponse = (typeof paypalMockResponse)[keyof typeof paypalMockResponse];
|
|
2075
2108
|
export declare const pddpAmountType: {
|
|
2076
2109
|
readonly FlcTotalCost: "FLC_TOTAL_COST";
|
|
2077
2110
|
readonly InsuredValue: "INSURED_VALUE";
|
|
@@ -2388,6 +2421,7 @@ export declare const taxMethodType: {
|
|
|
2388
2421
|
readonly Consignment: "CONSIGNMENT";
|
|
2389
2422
|
readonly Default: "DEFAULT";
|
|
2390
2423
|
readonly Domestic: "DOMESTIC";
|
|
2424
|
+
readonly DomesticLcg: "DOMESTIC_LCG";
|
|
2391
2425
|
readonly SellerOfRecord: "SELLER_OF_RECORD";
|
|
2392
2426
|
};
|
|
2393
2427
|
export type TaxMethodType = (typeof taxMethodType)[keyof typeof taxMethodType];
|
|
@@ -2719,6 +2753,13 @@ export type FulfillmentCenterQuery = {
|
|
|
2719
2753
|
type: FulfillmentCenterType;
|
|
2720
2754
|
}> | null;
|
|
2721
2755
|
};
|
|
2756
|
+
export type PaypalOrderCaptureMutation = {
|
|
2757
|
+
paypalOrderCapture: {
|
|
2758
|
+
order: {
|
|
2759
|
+
id: string;
|
|
2760
|
+
} | null;
|
|
2761
|
+
};
|
|
2762
|
+
};
|
|
2722
2763
|
export type CheckItemRestrictionsMutation = {
|
|
2723
2764
|
itemRestrictionApply: {
|
|
2724
2765
|
id: string;
|
|
@@ -2844,6 +2885,11 @@ export type CheckoutDetailsFragment = {
|
|
|
2844
2885
|
total: number;
|
|
2845
2886
|
};
|
|
2846
2887
|
};
|
|
2888
|
+
export type PaypalOrderCreateMutation = {
|
|
2889
|
+
paypalOrderCreate: {
|
|
2890
|
+
paypalOrderId: string | null;
|
|
2891
|
+
};
|
|
2892
|
+
};
|
|
2847
2893
|
export type ExchangeRateCreateMutation = {
|
|
2848
2894
|
exchangeRateCreate: {
|
|
2849
2895
|
expiresAt: string;
|
|
@@ -3002,7 +3048,14 @@ export type ZonosSettingsQuery = {
|
|
|
3002
3048
|
}>;
|
|
3003
3049
|
createdAt: string;
|
|
3004
3050
|
createdBy: string;
|
|
3005
|
-
|
|
3051
|
+
externalPaymentMethods: Array<{
|
|
3052
|
+
status: ExternalPaymentMethodStatus;
|
|
3053
|
+
type: ExternalPaymentMethodType;
|
|
3054
|
+
}> | null;
|
|
3055
|
+
externalServiceTokens: Array<{
|
|
3056
|
+
token: string;
|
|
3057
|
+
type: ExternalServiceTokenType;
|
|
3058
|
+
}>;
|
|
3006
3059
|
id: string;
|
|
3007
3060
|
mode: Mode;
|
|
3008
3061
|
orderNotifications: {
|
|
@@ -3029,13 +3082,10 @@ export type ZonosSettingsQuery = {
|
|
|
3029
3082
|
};
|
|
3030
3083
|
organization: string;
|
|
3031
3084
|
placeOrderButtonSelector: string | null;
|
|
3032
|
-
|
|
3085
|
+
status: CheckoutStatus;
|
|
3033
3086
|
subscriptionStatus: CheckoutSubscriptionStatus;
|
|
3034
3087
|
successBehavior: CheckoutSuccessBehavior;
|
|
3035
|
-
|
|
3036
|
-
token: string;
|
|
3037
|
-
type: ExternalServiceTokenType;
|
|
3038
|
-
}>;
|
|
3088
|
+
successRedirectUrl: string;
|
|
3039
3089
|
updatedAt: string;
|
|
3040
3090
|
updatedBy: string;
|
|
3041
3091
|
visibilityStatus: CheckoutVisibilityStatus;
|
|
@@ -3087,7 +3137,14 @@ export type CheckoutSettingFragment = {
|
|
|
3087
3137
|
}>;
|
|
3088
3138
|
createdAt: string;
|
|
3089
3139
|
createdBy: string;
|
|
3090
|
-
|
|
3140
|
+
externalPaymentMethods: Array<{
|
|
3141
|
+
status: ExternalPaymentMethodStatus;
|
|
3142
|
+
type: ExternalPaymentMethodType;
|
|
3143
|
+
}> | null;
|
|
3144
|
+
externalServiceTokens: Array<{
|
|
3145
|
+
token: string;
|
|
3146
|
+
type: ExternalServiceTokenType;
|
|
3147
|
+
}>;
|
|
3091
3148
|
id: string;
|
|
3092
3149
|
mode: Mode;
|
|
3093
3150
|
orderNotifications: {
|
|
@@ -3117,10 +3174,7 @@ export type CheckoutSettingFragment = {
|
|
|
3117
3174
|
status: CheckoutStatus;
|
|
3118
3175
|
subscriptionStatus: CheckoutSubscriptionStatus;
|
|
3119
3176
|
successBehavior: CheckoutSuccessBehavior;
|
|
3120
|
-
|
|
3121
|
-
token: string;
|
|
3122
|
-
type: ExternalServiceTokenType;
|
|
3123
|
-
}>;
|
|
3177
|
+
successRedirectUrl: string;
|
|
3124
3178
|
updatedAt: string;
|
|
3125
3179
|
updatedBy: string;
|
|
3126
3180
|
visibilityStatus: CheckoutVisibilityStatus;
|
|
@@ -3420,6 +3474,12 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
3420
3474
|
orderUpdateAccountOrderNumber(variables?: {
|
|
3421
3475
|
[x: string]: never;
|
|
3422
3476
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<OrderUpdateAccountOrderNumberMutation>;
|
|
3477
|
+
paypalOrderCapture(variables?: {
|
|
3478
|
+
[x: string]: never;
|
|
3479
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<PaypalOrderCaptureMutation>;
|
|
3480
|
+
paypalOrderCreate(variables?: {
|
|
3481
|
+
[x: string]: never;
|
|
3482
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<PaypalOrderCreateMutation>;
|
|
3423
3483
|
removeTrackingNumber(variables?: {
|
|
3424
3484
|
[x: string]: never;
|
|
3425
3485
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<RemoveTrackingNumberMutation>;
|