@zonos/elements 1.3.143 → 1.3.145
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/{CheckoutConfig-eaaf62a1.js → CheckoutConfig-d25d548d.js} +13 -3
- package/dist/cjs/{cart-6ac8dc06.js → cart-9d5e2816.js} +296 -41
- package/dist/cjs/{createCustomEvent-3e982e57.js → createCustomEvent-7b6fad95.js} +0 -3
- package/dist/cjs/{getBorderRadius-f97c99ad.js → getBorderRadius-7d0772bf.js} +1 -1
- package/dist/cjs/{handleFetch-864d3c53.js → handleFetch-3673a0c2.js} +30 -1
- package/dist/cjs/{index-b678ce0c.js → index-2f90486e.js} +209 -157
- package/dist/cjs/index.cjs.js +12 -11
- package/dist/cjs/{isDarkColor-434d71dd.js → isDarkColor-2acf30d1.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{paypal-ea8b4ca0.js → paypal-f9015045.js} +4 -4
- package/dist/cjs/zonos-address_8.cjs.entry.js +96 -18
- package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
- 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_13.cjs.entry.js +128 -30
- package/dist/cjs/zonos-checkout.cjs.entry.js +47 -27
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +31 -10
- package/dist/cjs/zonos-country-flag.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +6 -6
- package/dist/cjs/zonos-elements.cjs.js +3 -3
- package/dist/cjs/{zonos-notification_3.cjs.entry.js → zonos-empty-state-payment_4.cjs.entry.js} +86 -8
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -7
- package/dist/cjs/zonos-hello.cjs.entry.js +6 -6
- package/dist/cjs/zonos-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- 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-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-8971eb65.js → zonosStore-46809186.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +8 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +24 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +2 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +4 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +34 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +4 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +109 -18
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/assets/PaymentEmptyStateDarkIcon.svg +22 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/assets/PaymentEmptyStateLightIcon.svg +22 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.css +51 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +90 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +73 -18
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +10 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +4 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +6 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +18 -2
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -0
- package/dist/collection/components/common/zonos-button/zonos-button.js +30 -0
- package/dist/collection/components/common/zonos-card/zonos-card.js +20 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +14 -0
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +4 -0
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +4 -0
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +22 -0
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +4 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -0
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +4 -0
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +26 -0
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +8 -0
- package/dist/collection/components/common/zonos-input/zonos-input.js +12 -0
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -0
- package/dist/collection/components/common/zonos-link/zonos-link.js +8 -0
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +4 -0
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +6 -0
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +4 -0
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +11 -1
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -0
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +3 -3
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +52 -8
- package/dist/collection/components/common/zonos-text/zonos-text.js +8 -0
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +4 -0
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +4 -0
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -0
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +10 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +6 -0
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +7 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +7 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +14 -2
- package/dist/collection/components/main/zonos-controller.js +30 -5
- package/dist/collection/components/store/checkout/cart.js +3 -0
- package/dist/collection/components/store/checkout/stripe.js +112 -39
- package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
- package/dist/collection/components/store/translationStore/strings.base.js +9 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
- package/dist/collection/components/store/translationStore/strings.french.js +9 -0
- package/dist/collection/components/store/translationStore/strings.german.js +9 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +6 -0
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +84 -3
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +3 -1
- package/dist/collection/components/utils/api/getCheckoutSession.js +1 -1
- package/dist/collection/components/utils/api/placeTestOrder.js +40 -0
- package/dist/collection/components/utils/checkout/getIsStagingMode.js +1 -0
- package/dist/collection/components/utils/checkout/getIsTestMode.js +5 -1
- package/dist/collection/components/utils/handleFetch.js +22 -1
- package/dist/collection/components/utils/validateEmailValue.js +4 -0
- package/dist/collection/scripts/_getTempCartById.js +2 -2
- package/dist/collection/scripts/_getWithTestPublicCredential.js +5 -2
- package/dist/collection/scripts/cart/_getIsValidCartId.js +11 -0
- package/dist/collection/types/checkout/api/PlaceTestOrder.js +1 -0
- package/dist/collection/types/generated/graphql.internal.types.js +13 -1
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/{CheckoutConfig-262008fe.js → CheckoutConfig-573bd959.js} +13 -3
- package/dist/esm/{cart-acba54d0.js → cart-887f7d66.js} +296 -41
- package/dist/esm/{createCustomEvent-31a792d3.js → createCustomEvent-58159025.js} +1 -3
- package/dist/esm/{getBorderRadius-4aca63d4.js → getBorderRadius-b32d4218.js} +1 -1
- package/dist/esm/{handleFetch-badf4543.js → handleFetch-b4633675.js} +29 -2
- package/dist/esm/{index-986b5ff2.js → index-d82f06f2.js} +209 -157
- package/dist/esm/index.js +13 -12
- package/dist/esm/{isDarkColor-4915739f.js → isDarkColor-10f38df6.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{paypal-3401f757.js → paypal-6fd5749b.js} +4 -4
- package/dist/esm/zonos-address_8.entry.js +96 -18
- package/dist/esm/zonos-badge.entry.js +2 -2
- 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_13.entry.js +126 -28
- package/dist/esm/zonos-checkout.entry.js +45 -25
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +31 -10
- package/dist/esm/zonos-country-flag.entry.js +6 -6
- package/dist/esm/zonos-country-select_4.entry.js +6 -6
- package/dist/esm/zonos-elements.js +4 -4
- package/dist/esm/{zonos-notification_3.entry.js → zonos-empty-state-payment_4.entry.js} +86 -9
- package/dist/esm/zonos-hello-dialog.entry.js +7 -7
- package/dist/esm/zonos-hello.entry.js +6 -6
- package/dist/esm/zonos-input.entry.js +3 -3
- package/dist/esm/zonos-language-select_2.entry.js +6 -6
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm/{zonosStore-708637e7.js → zonosStore-44efd080.js} +1 -1
- package/dist/esm-es5/CheckoutConfig-573bd959.js +1 -0
- package/dist/esm-es5/cart-887f7d66.js +1 -0
- package/dist/esm-es5/createCustomEvent-58159025.js +1 -0
- package/dist/esm-es5/{getBorderRadius-4aca63d4.js → getBorderRadius-b32d4218.js} +1 -1
- package/dist/esm-es5/handleFetch-b4633675.js +1 -0
- package/dist/esm-es5/index-d82f06f2.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-4915739f.js → isDarkColor-10f38df6.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-3401f757.js → paypal-6fd5749b.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.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_13.entry.js +1 -1
- 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-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 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -0
- 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-shipping-rich-radio.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/esm-es5/{zonosStore-708637e7.js → zonosStore-44efd080.js} +1 -1
- package/dist/scripts/index.d.ts +61 -0
- 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 +1 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +18 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.d.ts +13 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +10 -0
- package/dist/types/components/common/zonos-stripe-input/zonos-stripe-input.d.ts +7 -3
- package/dist/types/components/main/zonos-controller.d.ts +1 -0
- package/dist/types/components/store/checkout/cart.d.ts +5 -0
- package/dist/types/components/store/checkout/stripe.d.ts +8 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +6 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/api/placeTestOrder.d.ts +7 -0
- package/dist/types/components/utils/checkout/getIsStagingMode.d.ts +1 -0
- package/dist/types/components/utils/checkout/getIsTestMode.d.ts +1 -1
- package/dist/types/components/utils/validateEmailValue.d.ts +1 -0
- package/dist/types/components.d.ts +61 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +8 -2
- package/dist/types/types/checkout/api/PlaceTestOrder.d.ts +7 -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 +87 -12
- package/dist/types/types/generated/graphql.internal.types.ts +104 -14
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-d3867033.entry.js → p-0028d158.entry.js} +1 -1
- package/dist/zonos-elements/{p-54058b57.entry.js → p-05013308.entry.js} +1 -1
- package/dist/zonos-elements/{p-9e84f647.system.entry.js → p-0e9826d2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c0164a3c.system.js → p-12546668.system.js} +1 -1
- package/dist/zonos-elements/p-18e5b741.system.js +1 -0
- package/dist/zonos-elements/{p-f2d07062.entry.js → p-1d466ac6.entry.js} +1 -1
- package/dist/zonos-elements/{p-654fc23d.system.entry.js → p-2e6265cc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-36dfc7ac.system.js → p-32912caf.system.js} +1 -1
- package/dist/zonos-elements/{p-fc4658a6.entry.js → p-36f97fd9.entry.js} +1 -1
- package/dist/zonos-elements/{p-8ac02349.system.entry.js → p-3a213429.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e6554a6f.system.entry.js → p-3aa4841a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2ab5e362.system.entry.js → p-3bd17598.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a13d5957.system.entry.js → p-3d221556.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3f282167.system.entry.js +1 -0
- package/dist/zonos-elements/{p-381874b0.system.entry.js → p-41e26cc4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-46f6e5e9.system.js +1 -0
- package/dist/zonos-elements/p-49b8760c.system.entry.js +1 -0
- package/dist/zonos-elements/p-4caffd96.system.js +2 -0
- package/dist/zonos-elements/{p-0ab29580.entry.js → p-4d353108.entry.js} +1 -1
- package/dist/zonos-elements/p-595f5dd2.js +1 -0
- package/dist/zonos-elements/{p-a4f045d4.js → p-5e4b6b77.js} +1 -1
- package/dist/zonos-elements/{p-4c7f0417.entry.js → p-5e76c269.entry.js} +1 -1
- package/dist/zonos-elements/{p-2761ad55.system.entry.js → p-619c07c6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9d7a860c.entry.js → p-69f84611.entry.js} +1 -1
- package/dist/zonos-elements/{p-766dd01f.js → p-6c578d26.js} +1 -1
- package/dist/zonos-elements/{p-28295342.entry.js → p-709c7e9e.entry.js} +1 -1
- package/dist/zonos-elements/{p-0197a9bf.system.entry.js → p-7140439f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-df9c0bfa.system.entry.js → p-794b2d24.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-44dd4269.entry.js → p-7f288336.entry.js} +1 -1
- package/dist/zonos-elements/{p-78e4f877.system.entry.js → p-81084be5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-81a5dd5c.js +1 -0
- package/dist/zonos-elements/{p-0b5c9f89.system.js → p-826b5d0c.system.js} +1 -1
- package/dist/zonos-elements/{p-33e1d25e.system.entry.js → p-86e825f0.system.entry.js} +1 -1
- package/dist/zonos-elements/p-896dca32.entry.js +1 -0
- package/dist/zonos-elements/{p-d9511c4a.entry.js → p-9024f5a1.entry.js} +1 -1
- package/dist/zonos-elements/{p-0b5f4ca7.system.entry.js → p-91fc6c24.system.entry.js} +1 -1
- package/dist/zonos-elements/p-98db517b.entry.js +1 -0
- package/dist/zonos-elements/p-9ae29c27.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a2bce31d.system.entry.js → p-9cf018c8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ab68ad11.js +2 -0
- package/dist/zonos-elements/{p-4b685549.js → p-b0616716.js} +1 -1
- package/dist/zonos-elements/p-b0ced00a.system.js +1 -0
- package/dist/zonos-elements/{p-1e3ea4ae.entry.js → p-b12fbc07.entry.js} +1 -1
- package/dist/zonos-elements/p-b18c4d1d.js +1 -0
- package/dist/zonos-elements/{p-dba6147b.system.entry.js → p-b2292b70.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-545c05ce.entry.js → p-b288c2ed.entry.js} +1 -1
- package/dist/zonos-elements/p-b3882a73.system.js +1 -0
- package/dist/zonos-elements/p-b4823b13.entry.js +1 -0
- package/dist/zonos-elements/{p-9306a835.entry.js → p-b5c360af.entry.js} +1 -1
- package/dist/zonos-elements/{p-2cfc00b8.system.entry.js → p-b6bbdb59.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0db28495.system.entry.js → p-b7a40db9.system.entry.js} +1 -1
- package/dist/zonos-elements/p-bf37ccc7.system.js +1 -0
- package/dist/zonos-elements/{p-21b538ea.system.js → p-c015be06.system.js} +1 -1
- package/dist/zonos-elements/{p-39cac2c1.entry.js → p-cbd5d932.entry.js} +1 -1
- package/dist/zonos-elements/{p-7c5c0a85.entry.js → p-cdfca133.entry.js} +1 -1
- package/dist/zonos-elements/{p-675f60b4.entry.js → p-d2f2c685.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f991022.entry.js → p-db3f381d.entry.js} +1 -1
- package/dist/zonos-elements/{p-9dec2b74.entry.js → p-de221545.entry.js} +1 -1
- package/dist/zonos-elements/{p-b0174a8f.js → p-e02fd9ae.js} +1 -1
- package/dist/zonos-elements/p-e3abf96c.system.entry.js +1 -0
- package/dist/zonos-elements/p-e4d509be.entry.js +1 -0
- package/dist/zonos-elements/{p-ab6973a5.entry.js → p-e8926f59.entry.js} +1 -1
- package/dist/zonos-elements/{p-6a8862a6.system.entry.js → p-e8c70c7d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f0c8150e.js +1 -0
- package/dist/zonos-elements/p-f824a75f.entry.js +1 -0
- package/dist/zonos-elements/{p-d5a3851d.system.entry.js → p-fc4ebe6b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fdb592a8.system.js +1 -0
- package/dist/zonos-elements/p-fec7bdd4.system.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +9 -8
- package/dist/esm-es5/CheckoutConfig-262008fe.js +0 -1
- package/dist/esm-es5/cart-acba54d0.js +0 -1
- package/dist/esm-es5/createCustomEvent-31a792d3.js +0 -1
- package/dist/esm-es5/handleFetch-badf4543.js +0 -1
- package/dist/esm-es5/index-986b5ff2.js +0 -2
- package/dist/esm-es5/zonos-notification_3.entry.js +0 -1
- package/dist/zonos-elements/p-1198c874.entry.js +0 -1
- package/dist/zonos-elements/p-1460f917.js +0 -1
- package/dist/zonos-elements/p-302f5d25.entry.js +0 -1
- package/dist/zonos-elements/p-386325ae.system.js +0 -1
- package/dist/zonos-elements/p-38d0c496.system.entry.js +0 -1
- package/dist/zonos-elements/p-64372f93.system.js +0 -1
- package/dist/zonos-elements/p-680d3694.js +0 -2
- package/dist/zonos-elements/p-7b999a40.js +0 -1
- package/dist/zonos-elements/p-7c643376.system.js +0 -1
- package/dist/zonos-elements/p-8e30228d.system.entry.js +0 -1
- package/dist/zonos-elements/p-8f26cc7e.entry.js +0 -1
- package/dist/zonos-elements/p-9da2d116.entry.js +0 -1
- package/dist/zonos-elements/p-a08ea336.js +0 -1
- package/dist/zonos-elements/p-a5b294d7.js +0 -1
- package/dist/zonos-elements/p-b2ea7adb.entry.js +0 -1
- package/dist/zonos-elements/p-b50667b6.system.js +0 -2
- package/dist/zonos-elements/p-bfcfd29b.system.js +0 -1
- package/dist/zonos-elements/p-c437d76c.system.js +0 -1
- package/dist/zonos-elements/p-d1afd314.system.entry.js +0 -1
- package/dist/zonos-elements/p-e9964a5a.system.js +0 -1
- package/dist/zonos-elements/p-f9aef1fc.system.entry.js +0 -1
- package/dist/zonos-elements/p-fa538a74.system.entry.js +0 -1
|
@@ -15,18 +15,23 @@ export class ZonosStripeInput {
|
|
|
15
15
|
this.isDisabled = false;
|
|
16
16
|
this.isError = false;
|
|
17
17
|
this.inputPlaceholder = '';
|
|
18
|
-
this.value =
|
|
18
|
+
this.value = '';
|
|
19
|
+
this.internalValue = this.inputValue;
|
|
19
20
|
}
|
|
20
21
|
onInputValueChange(newValue) {
|
|
21
|
-
this.
|
|
22
|
+
this.internalValue = newValue;
|
|
22
23
|
this.inputChange.emit(newValue);
|
|
24
|
+
this.value = newValue;
|
|
25
|
+
}
|
|
26
|
+
onValueChange(newValue) {
|
|
27
|
+
this.internalValue = newValue;
|
|
23
28
|
}
|
|
24
29
|
render() {
|
|
25
30
|
const primaryColor = this.overridePrimaryColor || zonosStore.appearance.colorPrimary;
|
|
26
31
|
const secondaryColor = this.overrideSecondaryColor || zonosStore.appearance.colorSecondary;
|
|
27
32
|
const isDark = primaryColor && isDarkColor(primaryColor);
|
|
28
33
|
const fontSize = zonosStore.appearance.fontSizeInputValue || 16;
|
|
29
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'd78f2aee99ac4e6d95cf1628e058e6d3bb70e309', class: classes([
|
|
30
35
|
'zonos--input zonos--elements',
|
|
31
36
|
isDark && 'dark',
|
|
32
37
|
this.isError && 'has-error',
|
|
@@ -35,18 +40,20 @@ export class ZonosStripeInput {
|
|
|
35
40
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
36
41
|
'--zonos--font-size': `${fontSize}px`,
|
|
37
42
|
'--zonos--primary-color': secondaryColor,
|
|
38
|
-
} }, h("div", { key: '
|
|
43
|
+
} }, h("div", { key: 'a3e7f765b0081a564c5955e387ff4b521a28d1a5', class: classes([
|
|
39
44
|
'zonos--label-wrapper',
|
|
40
45
|
this.isDisabled && 'disabled',
|
|
41
|
-
]) }, h("input", { key: '
|
|
46
|
+
]) }, h("input", { key: '999a54381e24e5da6f2a5fd9cde56c4fa87d37b1', class: classes([
|
|
42
47
|
'zonos--floated-input',
|
|
43
48
|
!!this.inputLabel && 'has-label',
|
|
44
|
-
this.
|
|
49
|
+
this.internalValue && 'has-content',
|
|
45
50
|
this.isError && 'has-error',
|
|
46
51
|
]), disabled: this.isDisabled, id: "zonos--input", onInput: e => {
|
|
47
52
|
const input = e.target;
|
|
48
53
|
this.inputChange.emit(input.value);
|
|
49
|
-
|
|
54
|
+
this.el.inputValue = input.value;
|
|
55
|
+
this.el.dispatchEvent(new Event('change'));
|
|
56
|
+
}, placeholder: this.inputPlaceholder, type: "text", value: this.internalValue }), h("div", { key: '251f9bfc2399e47f2a4dad359d2511400ec10b41', class: "zonos--floated-label" }, h("label", { key: 'eb23eea3a74af98c7439294621a4caf282fdbbb1', htmlFor: "zonos--input" }, this.inputLabel)))));
|
|
50
57
|
}
|
|
51
58
|
static get is() { return "zonos-stripe-input"; }
|
|
52
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -76,6 +83,8 @@ export class ZonosStripeInput {
|
|
|
76
83
|
"tags": [],
|
|
77
84
|
"text": "Value of the stripeInput"
|
|
78
85
|
},
|
|
86
|
+
"getter": false,
|
|
87
|
+
"setter": false,
|
|
79
88
|
"attribute": "input-value",
|
|
80
89
|
"reflect": false,
|
|
81
90
|
"defaultValue": "''"
|
|
@@ -94,6 +103,8 @@ export class ZonosStripeInput {
|
|
|
94
103
|
"tags": [],
|
|
95
104
|
"text": "Input label"
|
|
96
105
|
},
|
|
106
|
+
"getter": false,
|
|
107
|
+
"setter": false,
|
|
97
108
|
"attribute": "input-label",
|
|
98
109
|
"reflect": false
|
|
99
110
|
},
|
|
@@ -111,6 +122,8 @@ export class ZonosStripeInput {
|
|
|
111
122
|
"tags": [],
|
|
112
123
|
"text": "Primary color to override primary color from appearance primary color in setting."
|
|
113
124
|
},
|
|
125
|
+
"getter": false,
|
|
126
|
+
"setter": false,
|
|
114
127
|
"attribute": "override-primary-color",
|
|
115
128
|
"reflect": false
|
|
116
129
|
},
|
|
@@ -128,6 +141,8 @@ export class ZonosStripeInput {
|
|
|
128
141
|
"tags": [],
|
|
129
142
|
"text": "Secondary color to override secondary color from appearance secondary color in setting"
|
|
130
143
|
},
|
|
144
|
+
"getter": false,
|
|
145
|
+
"setter": false,
|
|
131
146
|
"attribute": "override-secondary-color",
|
|
132
147
|
"reflect": false
|
|
133
148
|
},
|
|
@@ -145,6 +160,8 @@ export class ZonosStripeInput {
|
|
|
145
160
|
"tags": [],
|
|
146
161
|
"text": "Disables the input"
|
|
147
162
|
},
|
|
163
|
+
"getter": false,
|
|
164
|
+
"setter": false,
|
|
148
165
|
"attribute": "is-disabled",
|
|
149
166
|
"reflect": false,
|
|
150
167
|
"defaultValue": "false"
|
|
@@ -163,6 +180,8 @@ export class ZonosStripeInput {
|
|
|
163
180
|
"tags": [],
|
|
164
181
|
"text": "Error state of the input"
|
|
165
182
|
},
|
|
183
|
+
"getter": false,
|
|
184
|
+
"setter": false,
|
|
166
185
|
"attribute": "is-error",
|
|
167
186
|
"reflect": false,
|
|
168
187
|
"defaultValue": "false"
|
|
@@ -181,15 +200,37 @@ export class ZonosStripeInput {
|
|
|
181
200
|
"tags": [],
|
|
182
201
|
"text": "Placeholder for the input"
|
|
183
202
|
},
|
|
203
|
+
"getter": false,
|
|
204
|
+
"setter": false,
|
|
184
205
|
"attribute": "input-placeholder",
|
|
185
206
|
"reflect": false,
|
|
186
207
|
"defaultValue": "''"
|
|
208
|
+
},
|
|
209
|
+
"value": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"mutable": true,
|
|
212
|
+
"complexType": {
|
|
213
|
+
"original": "string",
|
|
214
|
+
"resolved": "string",
|
|
215
|
+
"references": {}
|
|
216
|
+
},
|
|
217
|
+
"required": false,
|
|
218
|
+
"optional": false,
|
|
219
|
+
"docs": {
|
|
220
|
+
"tags": [],
|
|
221
|
+
"text": "The value of the input."
|
|
222
|
+
},
|
|
223
|
+
"getter": false,
|
|
224
|
+
"setter": false,
|
|
225
|
+
"attribute": "value",
|
|
226
|
+
"reflect": false,
|
|
227
|
+
"defaultValue": "''"
|
|
187
228
|
}
|
|
188
229
|
};
|
|
189
230
|
}
|
|
190
231
|
static get states() {
|
|
191
232
|
return {
|
|
192
|
-
"
|
|
233
|
+
"internalValue": {}
|
|
193
234
|
};
|
|
194
235
|
}
|
|
195
236
|
static get events() {
|
|
@@ -215,6 +256,9 @@ export class ZonosStripeInput {
|
|
|
215
256
|
return [{
|
|
216
257
|
"propName": "inputValue",
|
|
217
258
|
"methodName": "onInputValueChange"
|
|
259
|
+
}, {
|
|
260
|
+
"propName": "value",
|
|
261
|
+
"methodName": "onValueChange"
|
|
218
262
|
}];
|
|
219
263
|
}
|
|
220
264
|
}
|
|
@@ -105,6 +105,8 @@ export class ZonosText {
|
|
|
105
105
|
"tags": [],
|
|
106
106
|
"text": "The icon element to display"
|
|
107
107
|
},
|
|
108
|
+
"getter": false,
|
|
109
|
+
"setter": false,
|
|
108
110
|
"attribute": "text-color",
|
|
109
111
|
"reflect": false,
|
|
110
112
|
"defaultValue": "'gray-1000'"
|
|
@@ -129,6 +131,8 @@ export class ZonosText {
|
|
|
129
131
|
"tags": [],
|
|
130
132
|
"text": "The size of the text"
|
|
131
133
|
},
|
|
134
|
+
"getter": false,
|
|
135
|
+
"setter": false,
|
|
132
136
|
"attribute": "size",
|
|
133
137
|
"reflect": false
|
|
134
138
|
},
|
|
@@ -152,6 +156,8 @@ export class ZonosText {
|
|
|
152
156
|
"tags": [],
|
|
153
157
|
"text": "Type of the text to display"
|
|
154
158
|
},
|
|
159
|
+
"getter": false,
|
|
160
|
+
"setter": false,
|
|
155
161
|
"attribute": "type",
|
|
156
162
|
"reflect": false,
|
|
157
163
|
"defaultValue": "'body'"
|
|
@@ -176,6 +182,8 @@ export class ZonosText {
|
|
|
176
182
|
"tags": [],
|
|
177
183
|
"text": "The weight of the text"
|
|
178
184
|
},
|
|
185
|
+
"getter": false,
|
|
186
|
+
"setter": false,
|
|
179
187
|
"attribute": "weight",
|
|
180
188
|
"reflect": false
|
|
181
189
|
}
|
|
@@ -50,6 +50,8 @@ export class ZonosToggle {
|
|
|
50
50
|
"tags": [],
|
|
51
51
|
"text": "Options for the toggle"
|
|
52
52
|
},
|
|
53
|
+
"getter": false,
|
|
54
|
+
"setter": false,
|
|
53
55
|
"defaultValue": "[]"
|
|
54
56
|
},
|
|
55
57
|
"value": {
|
|
@@ -66,6 +68,8 @@ export class ZonosToggle {
|
|
|
66
68
|
"tags": [],
|
|
67
69
|
"text": "The selected option"
|
|
68
70
|
},
|
|
71
|
+
"getter": false,
|
|
72
|
+
"setter": false,
|
|
69
73
|
"attribute": "value",
|
|
70
74
|
"reflect": false
|
|
71
75
|
}
|
|
@@ -40,6 +40,8 @@ export class ZonosTooltip {
|
|
|
40
40
|
"tags": [],
|
|
41
41
|
"text": "The title of the tooltip"
|
|
42
42
|
},
|
|
43
|
+
"getter": false,
|
|
44
|
+
"setter": false,
|
|
43
45
|
"attribute": "label",
|
|
44
46
|
"reflect": false,
|
|
45
47
|
"defaultValue": "''"
|
|
@@ -58,6 +60,8 @@ export class ZonosTooltip {
|
|
|
58
60
|
"tags": [],
|
|
59
61
|
"text": "The subtitle of the tooltip"
|
|
60
62
|
},
|
|
63
|
+
"getter": false,
|
|
64
|
+
"setter": false,
|
|
61
65
|
"attribute": "subtitle",
|
|
62
66
|
"reflect": false,
|
|
63
67
|
"defaultValue": "''"
|
|
@@ -104,7 +104,9 @@ export class ZonosVirtualScroll {
|
|
|
104
104
|
"docs": {
|
|
105
105
|
"tags": [],
|
|
106
106
|
"text": "Render item"
|
|
107
|
-
}
|
|
107
|
+
},
|
|
108
|
+
"getter": false,
|
|
109
|
+
"setter": false
|
|
108
110
|
},
|
|
109
111
|
"itemWidth": {
|
|
110
112
|
"type": "number",
|
|
@@ -120,6 +122,8 @@ export class ZonosVirtualScroll {
|
|
|
120
122
|
"tags": [],
|
|
121
123
|
"text": "Width of each item"
|
|
122
124
|
},
|
|
125
|
+
"getter": false,
|
|
126
|
+
"setter": false,
|
|
123
127
|
"attribute": "item-width",
|
|
124
128
|
"reflect": false
|
|
125
129
|
},
|
|
@@ -137,6 +141,8 @@ export class ZonosVirtualScroll {
|
|
|
137
141
|
"tags": [],
|
|
138
142
|
"text": "Height that is used as a fallback if height is not provided"
|
|
139
143
|
},
|
|
144
|
+
"getter": false,
|
|
145
|
+
"setter": false,
|
|
140
146
|
"attribute": "fallback-item-height",
|
|
141
147
|
"reflect": false
|
|
142
148
|
},
|
|
@@ -153,7 +159,9 @@ export class ZonosVirtualScroll {
|
|
|
153
159
|
"docs": {
|
|
154
160
|
"tags": [],
|
|
155
161
|
"text": "Heights list of each item"
|
|
156
|
-
}
|
|
162
|
+
},
|
|
163
|
+
"getter": false,
|
|
164
|
+
"setter": false
|
|
157
165
|
}
|
|
158
166
|
};
|
|
159
167
|
}
|
|
@@ -40,6 +40,8 @@ export class ZonosComponent {
|
|
|
40
40
|
"tags": [],
|
|
41
41
|
"text": "The first name"
|
|
42
42
|
},
|
|
43
|
+
"getter": false,
|
|
44
|
+
"setter": false,
|
|
43
45
|
"attribute": "first",
|
|
44
46
|
"reflect": false,
|
|
45
47
|
"defaultValue": "''"
|
|
@@ -58,6 +60,8 @@ export class ZonosComponent {
|
|
|
58
60
|
"tags": [],
|
|
59
61
|
"text": "The middle name"
|
|
60
62
|
},
|
|
63
|
+
"getter": false,
|
|
64
|
+
"setter": false,
|
|
61
65
|
"attribute": "middle",
|
|
62
66
|
"reflect": false,
|
|
63
67
|
"defaultValue": "''"
|
|
@@ -76,6 +80,8 @@ export class ZonosComponent {
|
|
|
76
80
|
"tags": [],
|
|
77
81
|
"text": "The last name"
|
|
78
82
|
},
|
|
83
|
+
"getter": false,
|
|
84
|
+
"setter": false,
|
|
79
85
|
"attribute": "last",
|
|
80
86
|
"reflect": false,
|
|
81
87
|
"defaultValue": "''"
|
|
@@ -423,6 +423,8 @@ export class ZonosHello {
|
|
|
423
423
|
}],
|
|
424
424
|
"text": "Force mobile styling instead of media query and use the passed location value"
|
|
425
425
|
},
|
|
426
|
+
"getter": false,
|
|
427
|
+
"setter": false,
|
|
426
428
|
"attribute": "mobile-location-override",
|
|
427
429
|
"reflect": false
|
|
428
430
|
},
|
|
@@ -443,6 +445,8 @@ export class ZonosHello {
|
|
|
443
445
|
}],
|
|
444
446
|
"text": "Force left animation instead of detecting which side has more space"
|
|
445
447
|
},
|
|
448
|
+
"getter": false,
|
|
449
|
+
"setter": false,
|
|
446
450
|
"attribute": "animate-from-left-override",
|
|
447
451
|
"reflect": false
|
|
448
452
|
},
|
|
@@ -469,7 +473,9 @@ export class ZonosHello {
|
|
|
469
473
|
"docs": {
|
|
470
474
|
"tags": [],
|
|
471
475
|
"text": "Override the appearance settings"
|
|
472
|
-
}
|
|
476
|
+
},
|
|
477
|
+
"getter": false,
|
|
478
|
+
"setter": false
|
|
473
479
|
}
|
|
474
480
|
};
|
|
475
481
|
}
|
|
@@ -59,7 +59,9 @@ export class ZonosHelloDialogFooter {
|
|
|
59
59
|
"docs": {
|
|
60
60
|
"tags": [],
|
|
61
61
|
"text": "Appearance settings"
|
|
62
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"getter": false,
|
|
64
|
+
"setter": false
|
|
63
65
|
},
|
|
64
66
|
"setShowCountrySelect": {
|
|
65
67
|
"type": "unknown",
|
|
@@ -78,6 +80,8 @@ export class ZonosHelloDialogFooter {
|
|
|
78
80
|
}],
|
|
79
81
|
"text": "Whether or not the country select dialog is open"
|
|
80
82
|
},
|
|
83
|
+
"getter": false,
|
|
84
|
+
"setter": false,
|
|
81
85
|
"defaultValue": "() => {}"
|
|
82
86
|
},
|
|
83
87
|
"setShowLanguageSelect": {
|
|
@@ -97,6 +101,8 @@ export class ZonosHelloDialogFooter {
|
|
|
97
101
|
}],
|
|
98
102
|
"text": "Whether or not the language select dialog is open"
|
|
99
103
|
},
|
|
104
|
+
"getter": false,
|
|
105
|
+
"setter": false,
|
|
100
106
|
"defaultValue": "() => {}"
|
|
101
107
|
}
|
|
102
108
|
};
|
|
@@ -243,7 +243,7 @@ export class ZonosHelloDialog {
|
|
|
243
243
|
var _a;
|
|
244
244
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
245
245
|
}), h("zonos-card", { key: 'fbd14cc231da833e4930a52483f40c32b1e24e2d', spacing: "12px" }, h("zonos-v-stack", { key: '75da2be8ba28555258e8ff50e78c5b1ffa2403ac', spacing: 12 }, hasInclusivePrices ? (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: InclusivePricingIcon }), h("zonos-text", null, inclusivePriceMessage))) : (h(Fragment, null, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", null, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", null, taxDeMinimisMessage)))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
|
|
246
|
-
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '
|
|
246
|
+
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '6c15ad7d36590e1b93007e3786c0e0db191b4b8d', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'fae16c45b01ed1345d439c77267d1c80ce908598' }, h("zonos-country-select", { key: 'a6abe0661ee91ad227877ebbb5ee21253b110ea0', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '7550bec8646301a4bd5afb94b79b18b62698891b' }, h("zonos-language-select", { key: 'da2e8007ebf7e33723baaf3bdd2818334090c81c', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
247
247
|
}
|
|
248
248
|
static get is() { return "zonos-hello-dialog"; }
|
|
249
249
|
static get encapsulation() { return "shadow"; }
|
|
@@ -274,6 +274,8 @@ export class ZonosHelloDialog {
|
|
|
274
274
|
"tags": [],
|
|
275
275
|
"text": "Whether or not the dialog is open"
|
|
276
276
|
},
|
|
277
|
+
"getter": false,
|
|
278
|
+
"setter": false,
|
|
277
279
|
"attribute": "is-open",
|
|
278
280
|
"reflect": false,
|
|
279
281
|
"defaultValue": "false"
|
|
@@ -295,6 +297,8 @@ export class ZonosHelloDialog {
|
|
|
295
297
|
}],
|
|
296
298
|
"text": "The function to set the open state"
|
|
297
299
|
},
|
|
300
|
+
"getter": false,
|
|
301
|
+
"setter": false,
|
|
298
302
|
"defaultValue": "() => {}"
|
|
299
303
|
},
|
|
300
304
|
"mobileLocationOverride": {
|
|
@@ -320,6 +324,8 @@ export class ZonosHelloDialog {
|
|
|
320
324
|
}],
|
|
321
325
|
"text": "Force mobile styling instead of media query and use the passed location value"
|
|
322
326
|
},
|
|
327
|
+
"getter": false,
|
|
328
|
+
"setter": false,
|
|
323
329
|
"attribute": "mobile-location-override",
|
|
324
330
|
"reflect": false
|
|
325
331
|
},
|
|
@@ -340,6 +346,8 @@ export class ZonosHelloDialog {
|
|
|
340
346
|
}],
|
|
341
347
|
"text": "Force left animation instead of detecting which side has more space"
|
|
342
348
|
},
|
|
349
|
+
"getter": false,
|
|
350
|
+
"setter": false,
|
|
343
351
|
"attribute": "animate-from-left-override",
|
|
344
352
|
"reflect": false
|
|
345
353
|
},
|
|
@@ -366,7 +374,9 @@ export class ZonosHelloDialog {
|
|
|
366
374
|
"docs": {
|
|
367
375
|
"tags": [],
|
|
368
376
|
"text": "Override the appearance settings"
|
|
369
|
-
}
|
|
377
|
+
},
|
|
378
|
+
"getter": false,
|
|
379
|
+
"setter": false
|
|
370
380
|
},
|
|
371
381
|
"restrictedItems": {
|
|
372
382
|
"type": "unknown",
|
|
@@ -391,6 +401,8 @@ export class ZonosHelloDialog {
|
|
|
391
401
|
}],
|
|
392
402
|
"text": "Item restrictions array if any"
|
|
393
403
|
},
|
|
404
|
+
"getter": false,
|
|
405
|
+
"setter": false,
|
|
394
406
|
"defaultValue": "[]"
|
|
395
407
|
}
|
|
396
408
|
};
|
|
@@ -92,17 +92,38 @@ export class ZonosController {
|
|
|
92
92
|
return oldReplaceState.apply(this, arguments);
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
+
injectCustomHTML(htmlString) {
|
|
96
|
+
if (!htmlString) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
// Skip injecting custom HTML for legacy checkout
|
|
100
|
+
if (!window.Zonos.isLegacyCheckout) {
|
|
101
|
+
log('=== Skip injecting custom HTML for hosted checkout', 'info');
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
log('=== Injecting custom HTML for hosted checkout');
|
|
105
|
+
const template = document.createElement('template');
|
|
106
|
+
template.innerHTML = htmlString;
|
|
107
|
+
const scripts = template.content.querySelectorAll('script');
|
|
108
|
+
scripts.forEach(script => {
|
|
109
|
+
const scriptToInject = document.createElement('script');
|
|
110
|
+
scriptToInject.textContent = script.innerHTML;
|
|
111
|
+
document.body.appendChild(scriptToInject);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
95
114
|
async componentWillLoad() {
|
|
96
115
|
this.initHistoryListener();
|
|
97
116
|
zonosStore.zonosApiKey = this.zonosApiKey;
|
|
98
117
|
// running with scope async function to avoid blocking the main thread
|
|
99
118
|
(async () => {
|
|
100
|
-
var _a, _b;
|
|
119
|
+
var _a, _b, _c;
|
|
101
120
|
const { errors, json, zonosMode } = await getZonosSettings();
|
|
102
121
|
if (((_a = errors[0]) === null || _a === void 0 ? void 0 : _a.type.toString()) === '403') {
|
|
103
122
|
log('Failed to load zonos settings. This domain may not have access', 'warn');
|
|
104
123
|
return;
|
|
105
124
|
}
|
|
125
|
+
const customHTML = ((_b = json === null || json === void 0 ? void 0 : json.checkoutSettings) === null || _b === void 0 ? void 0 : _b.customHTML) || '';
|
|
126
|
+
this.injectCustomHTML(customHTML);
|
|
106
127
|
// init zonos notification
|
|
107
128
|
this.initZonosNotification();
|
|
108
129
|
const getLogoUrl = () => {
|
|
@@ -137,7 +158,7 @@ export class ZonosController {
|
|
|
137
158
|
// init localization store
|
|
138
159
|
await initLocalizationStore();
|
|
139
160
|
// checkout init
|
|
140
|
-
const publishableKey = ((
|
|
161
|
+
const publishableKey = ((_c = json === null || json === void 0 ? void 0 : json.checkoutSettings) === null || _c === void 0 ? void 0 : _c.externalServiceTokens.find(item => item.type === 'STRIPE_PUBLISHABLE_TOKEN')) || null;
|
|
141
162
|
if (!publishableKey || !this.stripeInitEvent) {
|
|
142
163
|
log('Checkout failed to load -- missing publishable key', 'warn');
|
|
143
164
|
return;
|
|
@@ -174,7 +195,7 @@ export class ZonosController {
|
|
|
174
195
|
*/
|
|
175
196
|
async reset() {
|
|
176
197
|
cartStore.checkoutSessionId = null;
|
|
177
|
-
stripeStore.clientSecret =
|
|
198
|
+
stripeStore.clientSecret = '';
|
|
178
199
|
}
|
|
179
200
|
/**
|
|
180
201
|
* Override the setting
|
|
@@ -206,7 +227,7 @@ export class ZonosController {
|
|
|
206
227
|
zonosStore.organizationName = organizationName;
|
|
207
228
|
}
|
|
208
229
|
render() {
|
|
209
|
-
return h(Host, { key: '
|
|
230
|
+
return h(Host, { key: 'f59eff8c088135e8fc791d03f668e787ec0d0912', class: "zonos--elements" });
|
|
210
231
|
}
|
|
211
232
|
static get is() { return "zonos-controller"; }
|
|
212
233
|
static get encapsulation() { return "shadow"; }
|
|
@@ -241,7 +262,9 @@ export class ZonosController {
|
|
|
241
262
|
"docs": {
|
|
242
263
|
"tags": [],
|
|
243
264
|
"text": "The zonos config object"
|
|
244
|
-
}
|
|
265
|
+
},
|
|
266
|
+
"getter": false,
|
|
267
|
+
"setter": false
|
|
245
268
|
},
|
|
246
269
|
"zonosApiKey": {
|
|
247
270
|
"type": "string",
|
|
@@ -257,6 +280,8 @@ export class ZonosController {
|
|
|
257
280
|
"tags": [],
|
|
258
281
|
"text": "The zonos api key"
|
|
259
282
|
},
|
|
283
|
+
"getter": false,
|
|
284
|
+
"setter": false,
|
|
260
285
|
"attribute": "zonos-api-key",
|
|
261
286
|
"reflect": false
|
|
262
287
|
}
|
|
@@ -2,6 +2,7 @@ import { createStore } from "@stencil/store";
|
|
|
2
2
|
import { stripeStore, stripeStoreInitCheckoutSession, stripeStoreReset, stripeStoreUpdateCheckoutSession, } from "./stripe";
|
|
3
3
|
import { localizationStore } from "../hello/localization";
|
|
4
4
|
import { translate } from "../translationStore";
|
|
5
|
+
import { getIsStagingMode } from "../../utils/checkout/getIsStagingMode";
|
|
5
6
|
import { log } from "../../utils/logging/log";
|
|
6
7
|
import { logError } from "../../utils/logging/logError";
|
|
7
8
|
const { onChange, reset, state: cartStore, } = createStore(() => ({
|
|
@@ -22,9 +23,11 @@ const { onChange, reset, state: cartStore, } = createStore(() => ({
|
|
|
22
23
|
inventoryCheckErrorMessage: null,
|
|
23
24
|
isSelectedShippingAboveDeminimis: false,
|
|
24
25
|
isSelectedShippingGuarantee: false,
|
|
26
|
+
isStagingMode: getIsStagingMode(),
|
|
25
27
|
items: [],
|
|
26
28
|
landedCostData: null,
|
|
27
29
|
landedCostMethod: 'DDP',
|
|
30
|
+
partiesData: [],
|
|
28
31
|
promoCode: sessionStorage.getItem('promoCode') || '',
|
|
29
32
|
// When user clicked applied button, save promocode into session storage for later use. So if session has promocode, applied button is clicked
|
|
30
33
|
promoCodeApplied: !!sessionStorage.getItem('promoCode'),
|