@zonos/elements 1.3.218 → 1.3.219
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/buildCartItemsByTempCart-309fcebf.js +28 -0
- package/dist/cjs/{cart-c54d05ce.js → cart-9a2b32e4.js} +90 -47
- package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
- package/dist/cjs/index.cjs.js +19 -9
- package/dist/cjs/isCollectMobileTablet-7e57fd90.js +172 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/localization-b12edb2a.js +738 -0
- package/dist/cjs/{paypal-d36b5dd1.js → paypal-e80871d0.js} +12 -8
- package/dist/cjs/placeTestOrder-8222fe95.js +93 -0
- package/dist/cjs/{localization-ab7e1902.js → translationStore-20a6d8bf.js} +963 -734
- package/dist/cjs/zonos-address_11.cjs.entry.js +102 -72
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-banner.cjs.entry.js → zonos-banner_2.cjs.entry.js} +40 -0
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-cart-items_14.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +73 -1292
- package/dist/cjs/zonos-checkout.cjs.entry.js +25 -48
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +92 -0
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +810 -0
- package/dist/cjs/zonos-collect.cjs.entry.js +468 -0
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +168 -0
- package/dist/cjs/zonos-controller.cjs.entry.js +84 -28
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +11 -10
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +15 -5
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +34 -33
- package/dist/cjs/zonos-hello.cjs.entry.js +8 -7
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -5
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -1
- package/dist/collection/components/checkout/zonos-collect/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/assets/empty-item.jpeg +0 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.css +60 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +39 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/RemoveIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/SuccessIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +84 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +403 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/chevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/globe.svg +3 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconDark.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconLight.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosWordmark.svg +7 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +152 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +164 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronUpIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.css +109 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +194 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/CheckmarkLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/RemoveLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +98 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +369 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +68 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +151 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.css +78 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +115 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +349 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +547 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- 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-h-stack/zonos-h-stack.css +38 -0
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +63 -0
- 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-loading-overlay/zonos-loading-overlay.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-skeleton/assets/RemoveLineIcon.svg +3 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.css +40 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +102 -0
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +8 -5
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
- package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.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.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 +4 -4
- package/dist/collection/components/main/zonos-controller.js +91 -25
- package/dist/collection/components/paypal/zonos-paypal-payment.js +13 -2
- package/dist/collection/components/store/checkout/cart.js +36 -15
- package/dist/collection/components/store/checkout/collect.js +157 -0
- package/dist/collection/components/store/checkout/paypal.js +4 -2
- package/dist/collection/components/store/checkout/stripe.js +31 -12
- package/dist/collection/components/store/translationStore/strings.arabic.js +48 -0
- package/dist/collection/components/store/translationStore/strings.base.js +48 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +48 -0
- package/dist/collection/components/store/translationStore/strings.french.js +48 -0
- package/dist/collection/components/store/translationStore/strings.german.js +48 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +48 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +48 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +48 -0
- package/dist/collection/components/store/translationStore.js +2 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +35 -18
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +15 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/checkout/initCollect.js +15 -0
- package/dist/collection/components/utils/checkout/isCollectMobileTablet.js +10 -0
- package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -1
- package/dist/collection/components/utils/renderFallback.js +7 -0
- package/dist/collection/scripts/_getZonosQaUrl.js +5 -1
- package/dist/collection/scripts/_zonosBase.js +7 -1
- package/dist/collection/types/checkout/api/PartyInfo.js +1 -0
- package/dist/collection/types/generated/graphql.internal.types.js +103 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
- package/dist/esm/{cart-bb0ee971.js → cart-acf4ebf5.js} +68 -27
- package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
- package/dist/esm/index.js +19 -9
- package/dist/esm/isCollectMobileTablet-b72b81c5.js +165 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/localization-8646f526.js +719 -0
- package/dist/esm/{paypal-bd4520eb.js → paypal-2fa930eb.js} +7 -4
- package/dist/esm/placeTestOrder-d1ad9cf6.js +90 -0
- package/dist/esm/{localization-d8326254.js → translationStore-c9743292.js} +963 -718
- package/dist/esm/zonos-address_11.entry.js +71 -41
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/{zonos-banner.entry.js → zonos-banner_2.entry.js} +40 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/{zonos-cart-items_14.entry.js → zonos-cart-items_12.entry.js} +23 -1240
- package/dist/esm/zonos-checkout.entry.js +6 -29
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +86 -0
- package/dist/esm/zonos-collect-finish_6.entry.js +801 -0
- package/dist/esm/zonos-collect.entry.js +464 -0
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-confirm-dialog_2.entry.js +163 -0
- package/dist/esm/zonos-controller.entry.js +84 -28
- package/dist/esm/zonos-country-flag.entry.js +2 -1
- package/dist/esm/zonos-country-select_4.entry.js +11 -10
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-empty-state-payment_4.entry.js +15 -5
- package/dist/esm/zonos-hello-dialog.entry.js +6 -5
- package/dist/esm/zonos-hello.entry.js +2 -1
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +6 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +9 -6
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +1 -0
- package/dist/esm-es5/cart-acf4ebf5.js +1 -0
- package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/isCollectMobileTablet-b72b81c5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-8646f526.js +1 -0
- package/dist/esm-es5/paypal-2fa930eb.js +17 -0
- package/dist/esm-es5/placeTestOrder-d1ad9cf6.js +1 -0
- package/dist/esm-es5/translationStore-c9743292.js +1 -0
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner_2.entry.js +1 -0
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -0
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -0
- package/dist/esm-es5/zonos-collect.entry.js +1 -0
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -0
- 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 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.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-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.d.ts +470 -3
- 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-collect/zonos-collect-cart-items/zonos-collect-cart-items.d.ts +4 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +49 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.d.ts +25 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.d.ts +29 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +62 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.d.ts +22 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.d.ts +10 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +86 -0
- package/dist/types/components/common/zonos-h-stack/zonos-h-stack.d.ts +9 -0
- package/dist/types/components/common/zonos-skeleton/zonos-skeleton.d.ts +17 -0
- package/dist/types/components/main/zonos-controller.d.ts +5 -0
- package/dist/types/components/paypal/zonos-paypal-payment.d.ts +3 -0
- package/dist/types/components/store/checkout/cart.d.ts +23 -3
- package/dist/types/components/store/checkout/collect.d.ts +21 -0
- package/dist/types/components/store/checkout/paypal.d.ts +4 -3
- package/dist/types/components/store/checkout/stripe.d.ts +6 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +48 -0
- package/dist/types/components/store/translationStore.d.ts +2 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -2
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +2 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/initCollect.d.ts +1 -0
- package/dist/types/components/utils/checkout/isCollectMobileTablet.d.ts +4 -0
- package/dist/types/components/utils/renderFallback.d.ts +6 -0
- package/dist/types/components.d.ts +401 -2
- package/dist/types/scripts/_zonosBase.d.ts +5 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
- package/dist/types/types/checkout/api/CreateParty.d.ts +24 -0
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -1
- package/dist/types/types/checkout/api/PartyInfo.d.ts +24 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +431 -9
- package/dist/types/types/generated/graphql.internal.types.ts +428 -10
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-288761b1.system.entry.js → p-009c3ac5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-03980f76.entry.js} +1 -1
- package/dist/zonos-elements/p-07bea979.system.js +1 -0
- package/dist/zonos-elements/p-0cec2dd2.system.entry.js +1 -0
- package/dist/zonos-elements/p-0d6c6a38.entry.js +1 -0
- package/dist/zonos-elements/p-0ef2a242.js +1 -0
- package/dist/zonos-elements/p-106ae0f1.entry.js +1 -0
- package/dist/zonos-elements/p-10797d2b.system.entry.js +1 -0
- package/dist/zonos-elements/p-195b33b6.system.entry.js +1 -0
- package/dist/zonos-elements/p-1fe5d4da.system.entry.js +1 -0
- package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-2323ff0f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-23293a0b.entry.js +1 -0
- package/dist/zonos-elements/{p-62813488.entry.js → p-23735db6.entry.js} +1 -1
- package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-26573347.entry.js} +1 -1
- package/dist/zonos-elements/{p-e640e8b8.entry.js → p-29499a5f.entry.js} +1 -1
- package/dist/zonos-elements/p-29c80a34.js +1 -0
- package/dist/zonos-elements/{p-edc77ea1.entry.js → p-2a9681b4.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f31901f.entry.js → p-2c9381be.entry.js} +1 -1
- package/dist/zonos-elements/p-2cc031b3.js +17 -0
- package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-34a37ce7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3c9714a8.system.entry.js +1 -0
- package/dist/zonos-elements/p-485416ec.js +1 -0
- package/dist/zonos-elements/p-56ee6d4b.system.entry.js +1 -0
- package/dist/zonos-elements/p-58afbe2b.entry.js +1 -0
- package/dist/zonos-elements/p-5e372fb9.entry.js +1 -0
- package/dist/zonos-elements/p-5ff4f9df.system.js +1 -0
- package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-60c61982.system.entry.js} +1 -1
- package/dist/zonos-elements/p-61c2c336.entry.js +1 -0
- package/dist/zonos-elements/p-6696617a.system.entry.js +1 -0
- package/dist/zonos-elements/p-6761091e.entry.js +1 -0
- package/dist/zonos-elements/p-6761286d.js +1 -0
- package/dist/zonos-elements/p-69451a50.system.js +1 -0
- package/dist/zonos-elements/p-69fd1b88.js +1 -0
- package/dist/zonos-elements/p-6dd63754.system.js +1 -0
- package/dist/zonos-elements/p-6e8aae27.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1c45cd15.entry.js → p-70b81bbc.entry.js} +1 -1
- package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-750b7f32.system.entry.js} +1 -1
- package/dist/zonos-elements/p-772ac0b7.js +1 -0
- package/dist/zonos-elements/p-81b357f7.system.js +1 -1
- package/dist/zonos-elements/p-81e23f30.system.js +1 -0
- package/dist/zonos-elements/p-873b698a.entry.js +1 -0
- package/dist/zonos-elements/p-87e2a777.entry.js +1 -0
- package/dist/zonos-elements/p-8ca25e6c.entry.js +1 -0
- package/dist/zonos-elements/p-909d36bf.entry.js +1 -0
- package/dist/zonos-elements/p-95461a1b.system.entry.js +1 -0
- package/dist/zonos-elements/p-986ebccc.js +1 -0
- package/dist/zonos-elements/p-9c0b78bf.system.entry.js +1 -0
- package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
- package/dist/zonos-elements/p-a7204d41.entry.js +1 -0
- package/dist/zonos-elements/p-aca272ea.entry.js +1 -0
- package/dist/zonos-elements/p-b12ec9f2.system.entry.js +1 -0
- package/dist/zonos-elements/p-b1bd9fe7.system.entry.js +1 -0
- package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
- package/dist/zonos-elements/{p-77666360.entry.js → p-b5406d26.entry.js} +1 -1
- package/dist/zonos-elements/p-bfbc081f.entry.js +1 -0
- package/dist/zonos-elements/p-c0a54cf6.system.js +1 -0
- package/dist/zonos-elements/p-c3c9b089.entry.js +1 -0
- package/dist/zonos-elements/p-c8784a01.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7b5de646.entry.js → p-d045e2e5.entry.js} +1 -1
- package/dist/zonos-elements/p-d26cffba.entry.js +1 -0
- package/dist/zonos-elements/{p-544c173a.system.entry.js → p-d351ece6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d63696ac.system.js +17 -0
- package/dist/zonos-elements/p-ddb29c2a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-dfb92907.entry.js} +1 -1
- package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-e2a45188.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-e455f060.system.entry.js} +1 -1
- package/dist/zonos-elements/p-eb54ece4.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
- package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-f0be0ca9.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f129a83b.system.entry.js +1 -0
- package/dist/zonos-elements/p-f17fde5f.system.js +1 -0
- package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-f74a6b78.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/zonos-card.cjs.entry.js +0 -49
- package/dist/esm/zonos-card.entry.js +0 -45
- package/dist/esm-es5/cart-bb0ee971.js +0 -1
- package/dist/esm-es5/localization-d8326254.js +0 -1
- package/dist/esm-es5/paypal-bd4520eb.js +0 -17
- package/dist/esm-es5/zonos-banner.entry.js +0 -1
- package/dist/esm-es5/zonos-card.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_14.entry.js +0 -1
- package/dist/zonos-elements/p-043f57e8.system.entry.js +0 -1
- package/dist/zonos-elements/p-0631d2b9.js +0 -1
- package/dist/zonos-elements/p-0a6ac265.system.js +0 -1
- package/dist/zonos-elements/p-0f041dc5.system.entry.js +0 -1
- package/dist/zonos-elements/p-1432a217.system.entry.js +0 -1
- package/dist/zonos-elements/p-1b51b738.system.entry.js +0 -1
- package/dist/zonos-elements/p-3a1513ae.system.entry.js +0 -1
- package/dist/zonos-elements/p-3b8d11dd.entry.js +0 -1
- package/dist/zonos-elements/p-4333afcb.entry.js +0 -1
- package/dist/zonos-elements/p-4d0d89da.system.entry.js +0 -1
- package/dist/zonos-elements/p-5dd9cb44.system.entry.js +0 -1
- package/dist/zonos-elements/p-605a21ac.entry.js +0 -1
- package/dist/zonos-elements/p-674981ad.system.js +0 -1
- package/dist/zonos-elements/p-6d090b53.entry.js +0 -1
- package/dist/zonos-elements/p-73c8c551.system.entry.js +0 -1
- package/dist/zonos-elements/p-795d223d.entry.js +0 -1
- package/dist/zonos-elements/p-8218ff62.system.entry.js +0 -1
- package/dist/zonos-elements/p-82f80c8a.entry.js +0 -1
- package/dist/zonos-elements/p-88f7256d.js +0 -1
- package/dist/zonos-elements/p-8b083884.entry.js +0 -1
- package/dist/zonos-elements/p-a449940d.entry.js +0 -1
- package/dist/zonos-elements/p-a5a4ad2f.entry.js +0 -1
- package/dist/zonos-elements/p-a5d45585.system.entry.js +0 -1
- package/dist/zonos-elements/p-a751e819.system.entry.js +0 -1
- package/dist/zonos-elements/p-ad556be6.entry.js +0 -1
- package/dist/zonos-elements/p-b4792af0.entry.js +0 -1
- package/dist/zonos-elements/p-b9ff6458.entry.js +0 -1
- package/dist/zonos-elements/p-d3dbae8c.system.js +0 -1
- package/dist/zonos-elements/p-d55aec11.system.entry.js +0 -1
- package/dist/zonos-elements/p-ebb9b902.system.js +0 -17
- package/dist/zonos-elements/p-ef1ce617.system.entry.js +0 -1
- package/dist/zonos-elements/p-ef75da6f.js +0 -17
- package/dist/zonos-elements/p-f3dbe934.entry.js +0 -1
- package/dist/zonos-elements/p-f741407e.system.entry.js +0 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { PaymentIntent, Stripe } from '@stripe/stripe-js';
|
|
2
|
+
export declare class ZonosCollect {
|
|
3
|
+
private storeUnsubscribeList;
|
|
4
|
+
/**
|
|
5
|
+
* Listener for locale change in localization store
|
|
6
|
+
*/
|
|
7
|
+
private onChangeLocaleListener;
|
|
8
|
+
/**
|
|
9
|
+
* Flag to determine if the checkout is on mobile
|
|
10
|
+
*/
|
|
11
|
+
mobile: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Whether or not the component is being rendered with tablet styles
|
|
14
|
+
*/
|
|
15
|
+
tablet: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The stripe instance
|
|
18
|
+
*/
|
|
19
|
+
stripe: Stripe | null;
|
|
20
|
+
/**
|
|
21
|
+
* Whether or not the language dialog is open
|
|
22
|
+
*/
|
|
23
|
+
showLanguageDialogMobile: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether or not the submit button is loading in `step` component
|
|
26
|
+
*/
|
|
27
|
+
submitLoading: boolean;
|
|
28
|
+
collapseReview: boolean;
|
|
29
|
+
isMobile: boolean;
|
|
30
|
+
isTablet: boolean;
|
|
31
|
+
zonosReviewRef?: HTMLZonosReviewElement;
|
|
32
|
+
/**
|
|
33
|
+
* For storybook to set to finish step, this is to trigger in the story for zonos-checkout-finish
|
|
34
|
+
*/
|
|
35
|
+
storybookPaymentStatusOverride?: PaymentIntent['status'];
|
|
36
|
+
isOverlayLoading: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Confirm dialog open state
|
|
39
|
+
*/
|
|
40
|
+
isCartCollected: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Cart expired state to show the cart expired dialog
|
|
43
|
+
*/
|
|
44
|
+
isCartExpired: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Pay in USD confirm dialog open state
|
|
47
|
+
*/
|
|
48
|
+
payInUsdConfirmDialogOpen: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Error message from onInventoryCheck callback
|
|
51
|
+
*/
|
|
52
|
+
inventoryCheckErrorMessage: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Confirmation id for collect finish component
|
|
55
|
+
*/
|
|
56
|
+
confirmationId: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Client secret value
|
|
59
|
+
*/
|
|
60
|
+
clientSecret: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Client secret value of customer session (use to load saved payment method and render saved consent)
|
|
63
|
+
*/
|
|
64
|
+
stripeCustomerSessionClientSecret: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* Listen to resize event to update the isMobile state
|
|
67
|
+
*/
|
|
68
|
+
resizeListener(): void;
|
|
69
|
+
private getBaseCurrencySettlementInfo;
|
|
70
|
+
private applyStripeTheme;
|
|
71
|
+
/**
|
|
72
|
+
* For storybook to set to finish step, this is to trigger in the story for zonos-checkout-finish
|
|
73
|
+
*/
|
|
74
|
+
private setToFinishStep;
|
|
75
|
+
private fetchCheckoutSession;
|
|
76
|
+
/**
|
|
77
|
+
* Check if stripe payment intent is succeeded or in a good state to move forward
|
|
78
|
+
*/
|
|
79
|
+
private checkStripePaymentIntentStatus;
|
|
80
|
+
private initCollectCart;
|
|
81
|
+
private toggleLanguageDialog;
|
|
82
|
+
private handleStripePaymentContinue;
|
|
83
|
+
componentWillLoad(): void;
|
|
84
|
+
disconnectedCallback(): void;
|
|
85
|
+
render(): any;
|
|
86
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class ZonosSkeleton {
|
|
2
|
+
/**
|
|
3
|
+
* The width of the skeleton
|
|
4
|
+
* @default '100%'
|
|
5
|
+
*/
|
|
6
|
+
skeletonWidth: string;
|
|
7
|
+
/**
|
|
8
|
+
* The height of the skeleton
|
|
9
|
+
* @default '14px'
|
|
10
|
+
*/
|
|
11
|
+
skeletonHeight?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Callback for when the skeleton is dismissed. Also determines if dismiss icon shown.
|
|
14
|
+
*/
|
|
15
|
+
dismissHandler?: () => void;
|
|
16
|
+
render(): any;
|
|
17
|
+
}
|
|
@@ -29,6 +29,10 @@ export declare class ZonosController {
|
|
|
29
29
|
* Method to initialize checkout element
|
|
30
30
|
*/
|
|
31
31
|
initCheckoutElement(stripe: Stripe): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Method to initialize Collect element
|
|
34
|
+
*/
|
|
35
|
+
initCollectElement(stripe: Stripe): Promise<void>;
|
|
32
36
|
/**
|
|
33
37
|
* Init zonos notification
|
|
34
38
|
*/
|
|
@@ -44,6 +48,7 @@ export declare class ZonosController {
|
|
|
44
48
|
private initHistoryListener;
|
|
45
49
|
private injectCustomHTML;
|
|
46
50
|
private initGooglePlacesService;
|
|
51
|
+
private buildBaseConfig;
|
|
47
52
|
componentWillLoad(): Promise<void>;
|
|
48
53
|
/**
|
|
49
54
|
* Show notification
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
export declare class ZonosPaypalPayment {
|
|
3
|
+
private storeUnsubscribeList;
|
|
3
4
|
el: HTMLZonosPaypalPaymentElement;
|
|
4
5
|
/**
|
|
5
6
|
* Event to emit when the paypal session is done
|
|
@@ -12,6 +13,8 @@ export declare class ZonosPaypalPayment {
|
|
|
12
13
|
*/
|
|
13
14
|
paypalSessionFail: EventEmitter<void>;
|
|
14
15
|
private loadPaypal;
|
|
16
|
+
componentWillLoad(): void;
|
|
15
17
|
componentDidLoad(): void;
|
|
18
|
+
disconnectedCallback(): void;
|
|
16
19
|
render(): any;
|
|
17
20
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { stripeStoreUpdateCheckoutSession } from "./stripe";
|
|
1
2
|
import type { CalculateLandedCostMutation, CartQuery, CheckoutPresentmentFragment, CheckoutSessionDetailsFragment, CountryCode, CurrencyCode, IncotermCode, ItemMeasurementType, ItemType, ItemUnitOfMeasure, LandedCostFragment, ShipmentRatingFragment } from "../../../types/generated/graphql.internal.types";
|
|
2
3
|
type Step = 'customer-info' | 'shipping' | 'payment' | 'finish' | 'error';
|
|
3
4
|
export type TabItem = {
|
|
@@ -193,16 +194,29 @@ declare const cartStoreApplySubtotals: ({ dutiesTaxesFeesEstimate, method, subto
|
|
|
193
194
|
method: IncotermCode;
|
|
194
195
|
subtotals: CartSubtotals;
|
|
195
196
|
}) => void;
|
|
197
|
+
type CartStoreRecalculateTotalParams = Omit<Parameters<typeof stripeStoreUpdateCheckoutSession>[0], 'id' | 'presentmentCountryCode'> & {
|
|
198
|
+
dutiesTaxesFeesEstimate?: number;
|
|
199
|
+
shouldInitSessionOnFailure?: boolean;
|
|
200
|
+
};
|
|
196
201
|
/**
|
|
197
202
|
* Detect if there are any items in cart that are not restricted and have positive amount, exclude negative amount items
|
|
198
203
|
*/
|
|
199
204
|
declare const cartStoreHasOneEligibleItem: () => boolean;
|
|
200
205
|
declare const cartStoreSetCheckoutSession: (checkoutSession: CheckoutSessionDetailsFragment) => void;
|
|
206
|
+
declare const cartStoreReCalculateTotal: ({ adjustmentsAmount, cartId, currency, dutiesTaxesFeesEstimate, itemsAmount, landedCostId, shouldInitSessionOnFailure, }: CartStoreRecalculateTotalParams) => Promise<boolean>;
|
|
201
207
|
/**
|
|
202
208
|
* For some service levels, the landed cost that's DAP and we do remittance on behalf of the merchant, these landed cost should be treated as DDP
|
|
203
209
|
*/
|
|
204
210
|
declare const cartStoreGetMethod: (landedCost: LandedCostFragment) => IncotermCode;
|
|
205
|
-
declare const cartStoreUpdateSelectedShippingOption: (
|
|
211
|
+
declare const cartStoreUpdateSelectedShippingOption: ({ applySubtotalsOnly, landedCostId, selectedShippingOption, }: {
|
|
212
|
+
/**
|
|
213
|
+
* Whether or not to only apply subtotals to cartStore and not update checkout session with the selected landed cost
|
|
214
|
+
* @default false "Sending a request to update checkout session with the selected landed cost"
|
|
215
|
+
*/
|
|
216
|
+
applySubtotalsOnly?: boolean;
|
|
217
|
+
landedCostId: string;
|
|
218
|
+
selectedShippingOption: ShipmentRatingFragment;
|
|
219
|
+
}) => Promise<boolean>;
|
|
206
220
|
declare const cartStoreStartCheckoutInterval: ({ isPreview, sessionTimeout, }: {
|
|
207
221
|
isPreview: boolean;
|
|
208
222
|
/**
|
|
@@ -212,11 +226,17 @@ declare const cartStoreStartCheckoutInterval: ({ isPreview, sessionTimeout, }: {
|
|
|
212
226
|
}) => void;
|
|
213
227
|
declare const cartStoreClearCheckoutInterval: () => void;
|
|
214
228
|
declare const cartStoreResetCartItems: () => void;
|
|
215
|
-
declare const cartStoreUpdateItems: ({ adjustments, cartItems, }: {
|
|
229
|
+
declare const cartStoreUpdateItems: ({ adjustments, cartItems, landedCostId, shouldInitSessionOnFailure, }: {
|
|
216
230
|
adjustments: CartAdjustment[];
|
|
217
231
|
cartItems: CartItem[];
|
|
232
|
+
landedCostId?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Attempt to init session on failure to update checkout session. Should not create session if collect cart already has a checkout session id in references
|
|
235
|
+
* @default true
|
|
236
|
+
*/
|
|
237
|
+
shouldInitSessionOnFailure?: boolean;
|
|
218
238
|
}) => Promise<void>;
|
|
219
239
|
declare const cartStorePreviousStep: () => void;
|
|
220
240
|
declare const cartStoreNextStep: () => void;
|
|
221
241
|
declare const cartStoreResetTabItems: () => void;
|
|
222
|
-
export { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStoreClearCheckoutInterval, cartStoreGetMethod, cartStoreGetShippingTransitInfo, cartStoreHasOneEligibleItem, cartStoreNextStep, cartStoreOnChange, cartStorePreviousStep, cartStoreReset, cartStoreResetCartItems, cartStoreResetTabItems, cartStoreSetCheckoutSession, cartStoreStartCheckoutInterval, cartStoreUpdateItems, cartStoreUpdateSelectedShippingOption, cartStoreUpdateToErrorState, };
|
|
242
|
+
export { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStoreClearCheckoutInterval, cartStoreGetMethod, cartStoreGetShippingTransitInfo, cartStoreHasOneEligibleItem, cartStoreNextStep, cartStoreOnChange, cartStorePreviousStep, cartStoreReCalculateTotal, cartStoreReset, cartStoreResetCartItems, cartStoreResetTabItems, cartStoreSetCheckoutSession, cartStoreStartCheckoutInterval, cartStoreUpdateItems, cartStoreUpdateSelectedShippingOption, cartStoreUpdateToErrorState, };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { GetShippingInfoByLandedCostIdResponse } from "../../../types/index";
|
|
2
|
+
import type { CheckoutSessionDetailsFragment } from "../../../types/generated/graphql.internal.types";
|
|
3
|
+
type CollectStore = {
|
|
4
|
+
amountDutyTaxFeeTotal: number | null;
|
|
5
|
+
amountTotalPaid: number | null;
|
|
6
|
+
isFetchingShippingInfo: boolean;
|
|
7
|
+
landedCostShortId: string | null;
|
|
8
|
+
originCompanyName: string | null;
|
|
9
|
+
partyBillingId: string | null;
|
|
10
|
+
shippingAddress: GetShippingInfoByLandedCostIdResponse['shipping'] | null;
|
|
11
|
+
};
|
|
12
|
+
declare const collectStoreReset: () => void, collectStore: CollectStore;
|
|
13
|
+
declare const collectStoreInitShippingInfo: ({ landedCostId, retries, }: {
|
|
14
|
+
landedCostId: string;
|
|
15
|
+
retries?: number;
|
|
16
|
+
}) => Promise<null | undefined>;
|
|
17
|
+
declare const collectStoreAsyncAddressUpdate: () => Promise<{
|
|
18
|
+
partiesCreated: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
declare const collectStoreUpdateSelectedShippingOption: (checkoutSession: CheckoutSessionDetailsFragment) => Promise<boolean>;
|
|
21
|
+
export { collectStore, collectStoreAsyncAddressUpdate, collectStoreInitShippingInfo, collectStoreReset, collectStoreUpdateSelectedShippingOption, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PayPalButtonsComponent } from '@paypal/paypal-js';
|
|
1
|
+
import { type PayPalButtonsComponent, type PayPalNamespace } from '@paypal/paypal-js';
|
|
2
2
|
import type { PaypalOrderIntent } from "../../../types/index";
|
|
3
3
|
import type { CurrencyCode, ElementsUiStyle } from "../../../types/generated/graphql.internal.types";
|
|
4
4
|
type PaypalStore = {
|
|
@@ -7,11 +7,12 @@ type PaypalStore = {
|
|
|
7
7
|
* Zonos order id created by paypal
|
|
8
8
|
*/
|
|
9
9
|
orderIdCreated: string | null;
|
|
10
|
+
paypal: PayPalNamespace | null;
|
|
10
11
|
paypalButtons: PayPalButtonsComponent[];
|
|
11
12
|
paypalClientId: string;
|
|
12
13
|
paypalErrorMessage: string | null;
|
|
13
14
|
};
|
|
14
|
-
declare const paypalStoreReset: () => void, paypalStore: PaypalStore;
|
|
15
|
+
declare const paypalStoreOnChange: import("@stencil/store/dist/types").OnChangeHandler<PaypalStore>, paypalStoreReset: () => void, paypalStore: PaypalStore;
|
|
15
16
|
declare const paypalStoreCreaterOrder: ({ checkoutSessionId, }: {
|
|
16
17
|
checkoutSessionId: string;
|
|
17
18
|
}) => Promise<string>;
|
|
@@ -27,4 +28,4 @@ declare const paypalStoreInitButtons: (props?: {
|
|
|
27
28
|
}) => void;
|
|
28
29
|
}) => PayPalButtonsComponent[] | null;
|
|
29
30
|
declare const paypalStoreHasPaypalEnabled: () => boolean;
|
|
30
|
-
export { paypalInitScript, paypalStore, paypalStoreCreaterOrder, paypalStoreHasPaypalEnabled, paypalStoreInitButtons, paypalStoreReset, };
|
|
31
|
+
export { paypalInitScript, paypalStore, paypalStoreCreaterOrder, paypalStoreHasPaypalEnabled, paypalStoreInitButtons, paypalStoreOnChange, paypalStoreReset, };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PaymentIntent, Stripe, StripeAddressElement, StripeAddressElementChangeEvent, StripeElements, StripeElementsOptions, StripeLinkAuthenticationElement, StripeLinkAuthenticationElementChangeEvent, StripePaymentElement, StripePaymentElementChangeEvent } from '@stripe/stripe-js';
|
|
2
2
|
import type { containsNonLatinChars } from "../../utils/containsNonLatinChars";
|
|
3
|
+
import type { CreatePartyRequest } from "../../../types/index";
|
|
3
4
|
import type { CheckoutSessionCreateRequest, CheckoutSessionUpdateRequest } from "../../../types/checkout/api/CheckoutSession";
|
|
4
5
|
import type { CustomAddressErrors } from "../../../types/checkout/form/CustomAddressErrors";
|
|
5
6
|
import type { TranslatedAddressObject } from "../../../types/checkout/TranslatedText";
|
|
@@ -143,6 +144,7 @@ declare const initStripeElements: (props?: {
|
|
|
143
144
|
paypalEnabled?: boolean;
|
|
144
145
|
}) => Promise<void>;
|
|
145
146
|
declare const stripeStoreReset: () => void;
|
|
147
|
+
declare const stripeStoreBuildAddressForPartyCreate: ({ address, firstName, lastName, name, phone, }: StripeAddressElementChangeEvent["value"]) => CreatePartyRequest["address"];
|
|
146
148
|
declare const stripeStoreAsyncAddressUpdate: () => Promise<{
|
|
147
149
|
partiesCreated: boolean;
|
|
148
150
|
}>;
|
|
@@ -197,7 +199,9 @@ declare const stripeStoreRetrievePayment: ({ clientSecret: _clientSecret, storyb
|
|
|
197
199
|
status: PaymentIntent.Status | undefined;
|
|
198
200
|
message?: undefined;
|
|
199
201
|
}>;
|
|
200
|
-
declare const stripeStoreConfirmPayment: (
|
|
202
|
+
declare const stripeStoreConfirmPayment: (props?: {
|
|
203
|
+
noLandedCostCheck?: boolean;
|
|
204
|
+
}) => Promise<void>;
|
|
201
205
|
export declare const getCheckoutSessionBody: () => CheckoutSessionCreateRequest;
|
|
202
206
|
declare const stripeStoreGetPaymentIntent: () => Promise<void>;
|
|
203
207
|
/**
|
|
@@ -228,4 +232,4 @@ declare const stripeStoreTranslateAddressToLatin: ({ addressInvalidCharactersLis
|
|
|
228
232
|
addressInvalidCharactersList: ReturnType<typeof containsNonLatinChars> | null;
|
|
229
233
|
billingAddressInvalidCharactersList: ReturnType<typeof containsNonLatinChars> | null;
|
|
230
234
|
}) => Promise<void>;
|
|
231
|
-
export { initStripeElements, stripeCalculateLandedCost, stripeStore, stripeStoreApplyPromoCode, stripeStoreAsyncAddressUpdate, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreGetPaymentIntent, stripeStoreHandleInventoryCheck, stripeStoreHandleInventoryRefund, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStoreOnChange, stripeStorePrefetchLandedCost, stripeStoreRemovePromoCode, stripeStoreReset, stripeStoreResetPromoCode, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, stripeStoreUpdateCheckoutSessionBaseCurrency, };
|
|
235
|
+
export { initStripeElements, stripeCalculateLandedCost, stripeStore, stripeStoreApplyPromoCode, stripeStoreAsyncAddressUpdate, stripeStoreBuildAddressForPartyCreate, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreGetPaymentIntent, stripeStoreHandleInventoryCheck, stripeStoreHandleInventoryRefund, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStoreOnChange, stripeStorePrefetchLandedCost, stripeStoreRemovePromoCode, stripeStoreReset, stripeStoreResetPromoCode, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, stripeStoreUpdateCheckoutSessionBaseCurrency, };
|
|
@@ -5,6 +5,9 @@ export declare const stringsArabic: {
|
|
|
5
5
|
' (Duties prepaid)': {
|
|
6
6
|
value: string;
|
|
7
7
|
};
|
|
8
|
+
'A confirmation email with your payment details has been sent for your records. If you have any questions or need support, our team is here to help.': {
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
8
11
|
'Above de minimis threshold for': {
|
|
9
12
|
value: string;
|
|
10
13
|
};
|
|
@@ -59,6 +62,9 @@ export declare const stringsArabic: {
|
|
|
59
62
|
'Billing address': {
|
|
60
63
|
value: string;
|
|
61
64
|
};
|
|
65
|
+
'Billing info': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
62
68
|
'By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level.': {
|
|
63
69
|
value: string;
|
|
64
70
|
};
|
|
@@ -101,6 +107,9 @@ export declare const stringsArabic: {
|
|
|
101
107
|
'Company name (optional)': {
|
|
102
108
|
value: string;
|
|
103
109
|
};
|
|
110
|
+
'Confirmation #:[confirmationId]': {
|
|
111
|
+
value: string;
|
|
112
|
+
};
|
|
104
113
|
Contact: {
|
|
105
114
|
value: string;
|
|
106
115
|
};
|
|
@@ -125,6 +134,12 @@ export declare const stringsArabic: {
|
|
|
125
134
|
'Customer information': {
|
|
126
135
|
value: string;
|
|
127
136
|
};
|
|
137
|
+
'Customs fees for your recent purchase from [companyName] are ready for payment': {
|
|
138
|
+
value: string;
|
|
139
|
+
};
|
|
140
|
+
'Customs fees total': {
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
128
143
|
Delivery: {
|
|
129
144
|
value: string;
|
|
130
145
|
};
|
|
@@ -170,6 +185,9 @@ export declare const stringsArabic: {
|
|
|
170
185
|
'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
|
|
171
186
|
value: string;
|
|
172
187
|
};
|
|
188
|
+
Duties: {
|
|
189
|
+
value: string;
|
|
190
|
+
};
|
|
173
191
|
'Duties and taxes will be applied to items and shipping.': {
|
|
174
192
|
value: string;
|
|
175
193
|
};
|
|
@@ -209,6 +227,9 @@ export declare const stringsArabic: {
|
|
|
209
227
|
Failure: {
|
|
210
228
|
value: string;
|
|
211
229
|
};
|
|
230
|
+
Fees: {
|
|
231
|
+
value: string;
|
|
232
|
+
};
|
|
212
233
|
'First name': {
|
|
213
234
|
value: string;
|
|
214
235
|
};
|
|
@@ -236,6 +257,9 @@ export declare const stringsArabic: {
|
|
|
236
257
|
'Invalid promo code': {
|
|
237
258
|
value: string;
|
|
238
259
|
};
|
|
260
|
+
'Invalid session': {
|
|
261
|
+
value: string;
|
|
262
|
+
};
|
|
239
263
|
Island: {
|
|
240
264
|
value: string;
|
|
241
265
|
};
|
|
@@ -308,9 +332,15 @@ export declare const stringsArabic: {
|
|
|
308
332
|
'Order complete!': {
|
|
309
333
|
value: string;
|
|
310
334
|
};
|
|
335
|
+
'Order details': {
|
|
336
|
+
value: string;
|
|
337
|
+
};
|
|
311
338
|
'Order total': {
|
|
312
339
|
value: string;
|
|
313
340
|
};
|
|
341
|
+
'Ordered from': {
|
|
342
|
+
value: string;
|
|
343
|
+
};
|
|
314
344
|
'Orders to [countryName] must be over [threshold] to ship.': {
|
|
315
345
|
value: string;
|
|
316
346
|
};
|
|
@@ -332,6 +362,9 @@ export declare const stringsArabic: {
|
|
|
332
362
|
'Payment failed': {
|
|
333
363
|
value: string;
|
|
334
364
|
};
|
|
365
|
+
'Payment failed. Please reload the page and try another payment method.': {
|
|
366
|
+
value: string;
|
|
367
|
+
};
|
|
335
368
|
'Payment failed. Please try another payment method.': {
|
|
336
369
|
value: string;
|
|
337
370
|
};
|
|
@@ -452,6 +485,9 @@ export declare const stringsArabic: {
|
|
|
452
485
|
'Select a language': {
|
|
453
486
|
value: string;
|
|
454
487
|
};
|
|
488
|
+
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
489
|
+
value: string;
|
|
490
|
+
};
|
|
455
491
|
'Session timed out': {
|
|
456
492
|
value: string;
|
|
457
493
|
};
|
|
@@ -512,12 +548,18 @@ export declare const stringsArabic: {
|
|
|
512
548
|
'Street or avenue': {
|
|
513
549
|
value: string;
|
|
514
550
|
};
|
|
551
|
+
Subtotal: {
|
|
552
|
+
value: string;
|
|
553
|
+
};
|
|
515
554
|
Success: {
|
|
516
555
|
value: string;
|
|
517
556
|
};
|
|
518
557
|
'Tax id is required': {
|
|
519
558
|
value: string;
|
|
520
559
|
};
|
|
560
|
+
Taxes: {
|
|
561
|
+
value: string;
|
|
562
|
+
};
|
|
521
563
|
'Taxes and fees': {
|
|
522
564
|
value: string;
|
|
523
565
|
};
|
|
@@ -530,6 +572,9 @@ export declare const stringsArabic: {
|
|
|
530
572
|
'Test mode': {
|
|
531
573
|
value: string;
|
|
532
574
|
};
|
|
575
|
+
'Thank you for submitting your payment. We appreciate your prompt attention.': {
|
|
576
|
+
value: string;
|
|
577
|
+
};
|
|
533
578
|
'The field is incomplete': {
|
|
534
579
|
value: string;
|
|
535
580
|
};
|
|
@@ -551,6 +596,9 @@ export declare const stringsArabic: {
|
|
|
551
596
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
552
597
|
value: string;
|
|
553
598
|
};
|
|
599
|
+
'Total paid': {
|
|
600
|
+
value: string;
|
|
601
|
+
};
|
|
554
602
|
Town: {
|
|
555
603
|
value: string;
|
|
556
604
|
};
|
|
@@ -5,6 +5,9 @@ export declare const stringsBase: {
|
|
|
5
5
|
' (Duties prepaid)': {
|
|
6
6
|
value: string;
|
|
7
7
|
};
|
|
8
|
+
'A confirmation email with your payment details has been sent for your records. If you have any questions or need support, our team is here to help.': {
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
8
11
|
'Above de minimis threshold for': {
|
|
9
12
|
value: string;
|
|
10
13
|
};
|
|
@@ -59,6 +62,9 @@ export declare const stringsBase: {
|
|
|
59
62
|
'Billing address': {
|
|
60
63
|
value: string;
|
|
61
64
|
};
|
|
65
|
+
'Billing info': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
62
68
|
'By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level.': {
|
|
63
69
|
value: string;
|
|
64
70
|
};
|
|
@@ -101,6 +107,9 @@ export declare const stringsBase: {
|
|
|
101
107
|
'Company name (optional)': {
|
|
102
108
|
value: string;
|
|
103
109
|
};
|
|
110
|
+
'Confirmation #:[confirmationId]': {
|
|
111
|
+
value: string;
|
|
112
|
+
};
|
|
104
113
|
Contact: {
|
|
105
114
|
value: string;
|
|
106
115
|
};
|
|
@@ -125,6 +134,12 @@ export declare const stringsBase: {
|
|
|
125
134
|
'Customer information': {
|
|
126
135
|
value: string;
|
|
127
136
|
};
|
|
137
|
+
'Customs fees for your recent purchase from [companyName] are ready for payment': {
|
|
138
|
+
value: string;
|
|
139
|
+
};
|
|
140
|
+
'Customs fees total': {
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
128
143
|
Delivery: {
|
|
129
144
|
value: string;
|
|
130
145
|
};
|
|
@@ -170,6 +185,9 @@ export declare const stringsBase: {
|
|
|
170
185
|
'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
|
|
171
186
|
value: string;
|
|
172
187
|
};
|
|
188
|
+
Duties: {
|
|
189
|
+
value: string;
|
|
190
|
+
};
|
|
173
191
|
'Duties and taxes will be applied to items and shipping.': {
|
|
174
192
|
value: string;
|
|
175
193
|
};
|
|
@@ -209,6 +227,9 @@ export declare const stringsBase: {
|
|
|
209
227
|
Failure: {
|
|
210
228
|
value: string;
|
|
211
229
|
};
|
|
230
|
+
Fees: {
|
|
231
|
+
value: string;
|
|
232
|
+
};
|
|
212
233
|
'First name': {
|
|
213
234
|
value: string;
|
|
214
235
|
};
|
|
@@ -236,6 +257,9 @@ export declare const stringsBase: {
|
|
|
236
257
|
'Invalid promo code': {
|
|
237
258
|
value: string;
|
|
238
259
|
};
|
|
260
|
+
'Invalid session': {
|
|
261
|
+
value: string;
|
|
262
|
+
};
|
|
239
263
|
Island: {
|
|
240
264
|
value: string;
|
|
241
265
|
};
|
|
@@ -308,9 +332,15 @@ export declare const stringsBase: {
|
|
|
308
332
|
'Order complete!': {
|
|
309
333
|
value: string;
|
|
310
334
|
};
|
|
335
|
+
'Order details': {
|
|
336
|
+
value: string;
|
|
337
|
+
};
|
|
311
338
|
'Order total': {
|
|
312
339
|
value: string;
|
|
313
340
|
};
|
|
341
|
+
'Ordered from': {
|
|
342
|
+
value: string;
|
|
343
|
+
};
|
|
314
344
|
'Orders to [countryName] must be over [threshold] to ship.': {
|
|
315
345
|
value: string;
|
|
316
346
|
};
|
|
@@ -332,6 +362,9 @@ export declare const stringsBase: {
|
|
|
332
362
|
'Payment failed': {
|
|
333
363
|
value: string;
|
|
334
364
|
};
|
|
365
|
+
'Payment failed. Please reload the page and try another payment method.': {
|
|
366
|
+
value: string;
|
|
367
|
+
};
|
|
335
368
|
'Payment failed. Please try another payment method.': {
|
|
336
369
|
value: string;
|
|
337
370
|
};
|
|
@@ -452,6 +485,9 @@ export declare const stringsBase: {
|
|
|
452
485
|
'Select a language': {
|
|
453
486
|
value: string;
|
|
454
487
|
};
|
|
488
|
+
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
489
|
+
value: string;
|
|
490
|
+
};
|
|
455
491
|
'Session timed out': {
|
|
456
492
|
value: string;
|
|
457
493
|
};
|
|
@@ -512,12 +548,18 @@ export declare const stringsBase: {
|
|
|
512
548
|
'Street or avenue': {
|
|
513
549
|
value: string;
|
|
514
550
|
};
|
|
551
|
+
Subtotal: {
|
|
552
|
+
value: string;
|
|
553
|
+
};
|
|
515
554
|
Success: {
|
|
516
555
|
value: string;
|
|
517
556
|
};
|
|
518
557
|
'Tax id is required': {
|
|
519
558
|
value: string;
|
|
520
559
|
};
|
|
560
|
+
Taxes: {
|
|
561
|
+
value: string;
|
|
562
|
+
};
|
|
521
563
|
'Taxes and fees': {
|
|
522
564
|
value: string;
|
|
523
565
|
};
|
|
@@ -530,6 +572,9 @@ export declare const stringsBase: {
|
|
|
530
572
|
'Test mode': {
|
|
531
573
|
value: string;
|
|
532
574
|
};
|
|
575
|
+
'Thank you for submitting your payment. We appreciate your prompt attention.': {
|
|
576
|
+
value: string;
|
|
577
|
+
};
|
|
533
578
|
'The field is incomplete': {
|
|
534
579
|
value: string;
|
|
535
580
|
};
|
|
@@ -551,6 +596,9 @@ export declare const stringsBase: {
|
|
|
551
596
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
552
597
|
value: string;
|
|
553
598
|
};
|
|
599
|
+
'Total paid': {
|
|
600
|
+
value: string;
|
|
601
|
+
};
|
|
554
602
|
Town: {
|
|
555
603
|
value: string;
|
|
556
604
|
};
|