@zonos/elements 1.3.11-alpha.0 → 1.3.11-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-7e28f026.js → cart-b34c001b.js} +92 -28
- package/dist/cjs/{getBorderRadius-d795f526.js → getBorderRadius-4fa738c3.js} +1 -1
- package/dist/cjs/getContrastColor-c72796c6.js +20 -0
- package/dist/cjs/{isColorVariable-41cacd82.js → isColorVariable-fff5e469.js} +1 -1
- package/dist/cjs/{isDarkColor-33fb96a7.js → isDarkColor-7faf0a82.js} +2 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{submitGtag-586d3206.js → submitGtag-1f1fbe1c.js} +15 -2
- package/dist/cjs/zonos-address_4.cjs.entry.js +15 -12
- package/dist/cjs/zonos-badge_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/{zonos-button_3.cjs.entry.js → zonos-button_2.cjs.entry.js} +34 -36
- package/dist/cjs/zonos-card_2.cjs.entry.js +8 -8
- package/dist/cjs/{zonos-cart-items_9.cjs.entry.js → zonos-cart-items_10.cjs.entry.js} +164 -53
- package/dist/cjs/zonos-checkout.cjs.entry.js +249 -26
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +9 -9
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +16 -4
- package/dist/cjs/zonos-icon.cjs.entry.js +39 -0
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
- package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +13 -4
- package/dist/cjs/zonos-text.cjs.entry.js +6 -2
- package/dist/cjs/{zonosStore-d3f0173b.js → zonosStore-bd2a0c59.js} +20 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +32 -22
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +76 -16
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +2 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +102 -22
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +43 -24
- package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.css +1 -1
- package/dist/collection/components/common/zonos-button/zonos-button.js +18 -4
- package/dist/collection/components/common/zonos-card/zonos-card.js +2 -2
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +5 -5
- package/dist/collection/components/common/zonos-checkout-progress-tabs/assets/TabCheckmark.svg +3 -0
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.css +103 -0
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +194 -0
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +1 -1
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -1
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +5 -30
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +9 -5
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +4 -4
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +33 -7
- package/dist/collection/components/common/zonos-text/zonos-text.js +7 -3
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +17 -2
- 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 +5 -5
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +26 -0
- package/dist/collection/components/store/checkout/stripe.js +3 -0
- package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
- package/dist/collection/components/store/translationStore/strings.base.js +3 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
- package/dist/collection/components/store/translationStore/strings.french.js +3 -0
- package/dist/collection/components/store/translationStore/strings.german.js +3 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
- package/dist/collection/components/store/zonosStore.js +20 -3
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +5 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/buildCartItemsByTempCart.js +24 -0
- package/dist/collection/components/utils/api/tempCartItem/getAttributes.js +66 -0
- package/dist/collection/components/utils/api/tempCartItem/getMeasurements.js +58 -0
- package/dist/collection/components/utils/api/trackConversionEvent.js +2 -0
- package/dist/collection/components/utils/checkout/isShippableCountry.js +2 -0
- package/dist/collection/components/utils/createCustomEvent.js +9 -0
- package/dist/collection/components/utils/getContrastColor.js +16 -0
- package/dist/collection/components/utils/isColorVariable.js +1 -1
- package/dist/collection/components/utils/styles.js +12 -0
- package/dist/collection/scripts/zonosBase.js +1 -0
- package/dist/collection/styles/stripe/addressRuleStyle.js +0 -3
- package/dist/collection/types/checkout/api/TempCart.js +1 -0
- package/dist/collection/types/generated/graphql.customer.types.js +73 -0
- package/dist/components/getContrastColor.js +18 -0
- package/dist/components/isColorVariable.js +1 -1
- package/dist/components/isDarkColor.js +1 -1
- package/dist/components/stripe.js +90 -25
- package/dist/components/trackConversionEvent.js +3 -1
- package/dist/components/zonos-address2.js +5 -2
- package/dist/components/zonos-badge2.js +3 -3
- package/dist/components/zonos-button2.js +30 -4
- package/dist/components/zonos-card2.js +2 -2
- package/dist/components/zonos-checkbox2.js +3 -3
- package/dist/components/zonos-checkout-finish2.js +15 -7
- package/dist/components/zonos-checkout-footer2.js +33 -17
- package/dist/components/zonos-checkout-progress-tabs.d.ts +11 -0
- package/dist/components/zonos-checkout-progress-tabs.js +6 -0
- package/dist/components/zonos-checkout-progress-tabs2.js +122 -0
- package/dist/components/zonos-checkout.js +277 -46
- package/dist/components/zonos-collapse2.js +2 -2
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +2 -2
- package/dist/components/zonos-country-select2.js +2 -2
- package/dist/components/zonos-custom-message2.js +1 -1
- package/dist/components/zonos-dialog2.js +4 -6
- package/dist/components/zonos-hello-dialog-footer2.js +2 -2
- package/dist/components/zonos-hello-dialog2.js +2 -2
- package/dist/components/zonos-hello.js +17 -3
- package/dist/components/zonos-icon2.js +5 -1
- package/dist/components/zonos-language-select2.js +3 -3
- package/dist/components/zonos-link-authentication2.js +1 -1
- package/dist/components/zonos-link.js +1 -1
- package/dist/components/zonos-logo.js +2 -2
- package/dist/components/zonos-payment2.js +1 -1
- package/dist/components/zonos-review2.js +1 -1
- package/dist/components/zonos-select-dialog-header2.js +2 -2
- package/dist/components/zonos-shipping-rich-radio2.js +11 -1
- package/dist/components/zonos-shipping2.js +44 -25
- package/dist/components/zonos-text2.js +5 -1
- package/dist/components/zonos-tooltip2.js +2 -2
- package/dist/components/zonos-v-stack2.js +2 -2
- package/dist/components/zonosStore.js +20 -3
- package/dist/esm/{cart-5a88b4f3.js → cart-cc09eaef.js} +93 -28
- package/dist/esm/{getBorderRadius-5d750ab8.js → getBorderRadius-a89e45fb.js} +1 -1
- package/dist/esm/getContrastColor-5fbc4746.js +18 -0
- package/dist/esm/{isColorVariable-91c33804.js → isColorVariable-fbf2d80d.js} +1 -1
- package/dist/esm/{isDarkColor-c34dfed9.js → isDarkColor-6bf71e51.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{submitGtag-289ddd8b.js → submitGtag-2eedb117.js} +15 -3
- package/dist/esm/zonos-address_4.entry.js +15 -12
- package/dist/esm/zonos-badge_2.entry.js +6 -6
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/{zonos-button_3.entry.js → zonos-button_2.entry.js} +35 -36
- package/dist/esm/zonos-card_2.entry.js +8 -8
- package/dist/esm/{zonos-cart-items_9.entry.js → zonos-cart-items_10.entry.js} +164 -54
- package/dist/esm/zonos-checkout.entry.js +249 -26
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +5 -5
- package/dist/esm/zonos-country-flag.entry.js +4 -4
- package/dist/esm/zonos-country-select_3.entry.js +9 -9
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +5 -5
- package/dist/esm/zonos-hello.entry.js +16 -4
- package/dist/esm/zonos-icon.entry.js +35 -0
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +3 -3
- package/dist/esm/zonos-notification.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +5 -5
- package/dist/esm/zonos-select-dialog-header_2.entry.js +5 -5
- package/dist/esm/zonos-shipping-rich-radio.entry.js +13 -4
- package/dist/esm/zonos-text.entry.js +6 -2
- package/dist/esm/{zonosStore-aac7c6ac.js → zonosStore-c4c45591.js} +20 -3
- package/dist/esm-es5/cart-cc09eaef.js +1 -0
- package/dist/esm-es5/{getBorderRadius-5d750ab8.js → getBorderRadius-a89e45fb.js} +1 -1
- package/dist/esm-es5/getContrastColor-5fbc4746.js +1 -0
- package/dist/esm-es5/isColorVariable-fbf2d80d.js +1 -0
- package/dist/esm-es5/{isDarkColor-c34dfed9.js → isDarkColor-6bf71e51.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/submitGtag-2eedb117.js +1 -0
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_2.entry.js +1 -0
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-icon.entry.js +1 -0
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-aac7c6ac.js → zonosStore-c4c45591.js} +1 -1
- package/dist/scripts/getTempCartById.js +1 -0
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.d.ts +14 -2
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +7 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +7 -0
- package/dist/types/components/common/zonos-button/zonos-button.d.ts +1 -0
- package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +1 -1
- package/dist/types/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.d.ts +29 -0
- package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +1 -6
- package/dist/types/components/common/zonos-icon/zonos-icon.d.ts +4 -2
- package/dist/types/components/common/zonos-logo/zonos-logo.d.ts +1 -1
- package/dist/types/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.d.ts +7 -1
- package/dist/types/components/common/zonos-text/zonos-text.d.ts +3 -1
- package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +1 -0
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +2 -1
- package/dist/types/components/store/checkout/cart.d.ts +19 -4
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
- package/dist/types/components/store/zonosStore.d.ts +11 -2
- package/dist/types/components/utils/api/buildCartItemsByTempCart.d.ts +7 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/api/tempCartItem/getAttributes.d.ts +11 -0
- package/dist/types/components/utils/api/tempCartItem/getMeasurements.d.ts +7 -0
- package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
- package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
- package/dist/types/components/utils/createCustomEvent.d.ts +12 -0
- package/dist/types/components/utils/getBorderRadius.d.ts +1 -1
- package/dist/types/components/utils/getContrastColor.d.ts +4 -0
- package/dist/types/components/utils/handleFetch.d.ts +2 -1
- package/dist/types/components/utils/isColorVariable.d.ts +1 -1
- package/dist/types/components/utils/styles.d.ts +7 -0
- package/dist/types/components.d.ts +69 -18
- package/dist/types/scripts/zonosBase.d.ts +10 -1
- package/dist/types/styles/stripe/addressRuleStyle.d.ts +2 -1
- package/dist/types/types/checkout/CheckoutConfig.d.ts +6 -1
- package/dist/types/types/checkout/api/TempCart.d.ts +80 -0
- package/dist/types/types/generated/graphql.customer.types.d.ts +97 -0
- package/dist/types/types/generated/graphql.customer.types.ts +135 -1
- 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/global.d.ts +10 -0
- package/dist/types/types/utils/deep/IDeepKeyofAtIndex.d.ts +1 -1
- package/dist/zonos-elements/assets/TabCheckmark.svg +3 -0
- package/dist/zonos-elements/{p-4ad5f307.system.entry.js → p-001518eb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-07022f11.js +1 -0
- package/dist/zonos-elements/p-0fe52bae.system.entry.js +1 -0
- package/dist/zonos-elements/{p-14bf3658.entry.js → p-105a2e51.entry.js} +1 -1
- package/dist/zonos-elements/{p-a87803b7.system.entry.js → p-15cd4a76.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-482371fb.system.entry.js → p-160cdf4e.system.entry.js} +1 -1
- package/dist/zonos-elements/p-167b3369.system.js +1 -0
- package/dist/zonos-elements/p-171eb334.entry.js +1 -0
- package/dist/zonos-elements/p-1bbdfae5.js +1 -0
- package/dist/zonos-elements/p-1d833f22.system.entry.js +1 -0
- package/dist/zonos-elements/{p-dad00ad3.system.entry.js → p-1df9ab6a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1f54c83e.entry.js +1 -0
- package/dist/zonos-elements/{p-27d57265.system.entry.js → p-20b080d1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-333da541.entry.js → p-215cd7ec.entry.js} +1 -1
- package/dist/zonos-elements/p-26e8f37a.entry.js +1 -0
- package/dist/zonos-elements/{p-77727098.system.js → p-41c2b1c5.system.js} +1 -1
- package/dist/zonos-elements/p-425865fd.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5f2cb4b6.entry.js → p-43022147.entry.js} +1 -1
- package/dist/zonos-elements/{p-188ddbe2.entry.js → p-4515ec7b.entry.js} +1 -1
- package/dist/zonos-elements/{p-9db3028d.entry.js → p-470284a3.entry.js} +1 -1
- package/dist/zonos-elements/p-4c9367f1.entry.js +1 -0
- package/dist/zonos-elements/{p-770384fa.system.entry.js → p-4d7b27af.system.entry.js} +1 -1
- package/dist/zonos-elements/p-55519ef5.system.js +1 -0
- package/dist/zonos-elements/{p-8445a084.system.entry.js → p-5ba91f13.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6484bf31.system.js +1 -0
- package/dist/zonos-elements/p-6a1b934d.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a725946f.entry.js → p-6bd4b5e6.entry.js} +1 -1
- package/dist/zonos-elements/{p-7e355496.system.entry.js → p-6c5c5377.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6e81adba.system.js +1 -1
- package/dist/zonos-elements/p-72c6bf0f.entry.js +1 -0
- package/dist/zonos-elements/p-7575a42a.js +1 -0
- package/dist/zonos-elements/p-7f9889bd.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c1e54094.system.js → p-86034f1e.system.js} +1 -1
- package/dist/zonos-elements/p-9a1db995.entry.js +1 -0
- package/dist/zonos-elements/{p-77c54b83.js → p-9a90fb56.js} +1 -1
- package/dist/zonos-elements/{p-d5a9dfc7.entry.js → p-9bdcd7b6.entry.js} +1 -1
- package/dist/zonos-elements/{p-edbea8df.system.js → p-9db2f9d1.system.js} +1 -1
- package/dist/zonos-elements/p-a144d26a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-93e51987.system.entry.js → p-a2f71e4f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6181f2d5.entry.js → p-ad499520.entry.js} +1 -1
- package/dist/zonos-elements/{p-e4e1ca2f.system.entry.js → p-b4c23bb5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-315c1fc2.entry.js → p-b62aee3d.entry.js} +1 -1
- package/dist/zonos-elements/{p-e969cec9.entry.js → p-b8718429.entry.js} +1 -1
- package/dist/zonos-elements/{p-25fbcefe.system.entry.js → p-ba5596ae.system.entry.js} +1 -1
- package/dist/zonos-elements/p-beba218e.js +1 -0
- package/dist/zonos-elements/p-c7f11c60.entry.js +1 -0
- package/dist/zonos-elements/{p-febddb45.entry.js → p-d4222f1f.entry.js} +1 -1
- package/dist/zonos-elements/p-dde4c859.system.entry.js +1 -0
- package/dist/zonos-elements/p-e28ed57c.js +1 -0
- package/dist/zonos-elements/p-e3a3e376.entry.js +1 -0
- package/dist/zonos-elements/{p-a578facf.entry.js → p-e3de496a.entry.js} +1 -1
- package/dist/zonos-elements/{p-afcded5d.system.js → p-ed23a5df.system.js} +1 -1
- package/dist/zonos-elements/{p-e392e212.system.entry.js → p-ed597cc9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d0d12a64.entry.js → p-f1037168.entry.js} +1 -1
- package/dist/zonos-elements/{p-c6de2e40.system.entry.js → p-f42bffad.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0b4910fe.system.entry.js → p-f62b49aa.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fa3d0aea.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-5a88b4f3.js +0 -1
- package/dist/esm-es5/isColorVariable-91c33804.js +0 -1
- package/dist/esm-es5/submitGtag-289ddd8b.js +0 -1
- package/dist/esm-es5/zonos-button_3.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_9.entry.js +0 -1
- package/dist/zonos-elements/p-144f4d31.entry.js +0 -1
- package/dist/zonos-elements/p-4569bc92.js +0 -1
- package/dist/zonos-elements/p-49a5be72.js +0 -1
- package/dist/zonos-elements/p-4c414a92.js +0 -1
- package/dist/zonos-elements/p-5c991faa.system.entry.js +0 -1
- package/dist/zonos-elements/p-691d8075.entry.js +0 -1
- package/dist/zonos-elements/p-723628b7.js +0 -1
- package/dist/zonos-elements/p-87c4ac09.system.entry.js +0 -1
- package/dist/zonos-elements/p-9f532a3f.entry.js +0 -1
- package/dist/zonos-elements/p-afc0460d.entry.js +0 -1
- package/dist/zonos-elements/p-ca6b4c1e.system.entry.js +0 -1
- package/dist/zonos-elements/p-d2885590.system.js +0 -1
- package/dist/zonos-elements/p-d7690752.system.entry.js +0 -1
- package/dist/zonos-elements/p-d9c65636.system.js +0 -1
- package/dist/zonos-elements/p-dd153a4e.entry.js +0 -1
- package/dist/zonos-elements/p-def8823e.entry.js +0 -1
- package/dist/zonos-elements/p-e4749f19.js +0 -1
- package/dist/zonos-elements/p-e87e8c9c.system.entry.js +0 -1
- package/dist/zonos-elements/p-f1170e7b.entry.js +0 -1
- package/dist/zonos-elements/p-fe0930e4.system.entry.js +0 -1
package/dist/types/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type TabItem, type TabItems } from "../../store/checkout/cart";
|
|
2
|
+
import type { Color } from "../../../types/styles/Color";
|
|
3
|
+
export declare class ZonosCheckoutProgressTabs {
|
|
4
|
+
ele: HTMLZonosCheckoutProgressTabsElement;
|
|
5
|
+
/**
|
|
6
|
+
* Color of the tab progress bar and label, override the secondary color of the appearance settings
|
|
7
|
+
*/
|
|
8
|
+
tabColor?: string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Background color of the parent that's wrapped around the tab progress bar
|
|
11
|
+
*/
|
|
12
|
+
backgroundColor?: Color | (string & {
|
|
13
|
+
_placeholder?: never;
|
|
14
|
+
}) | null;
|
|
15
|
+
/**
|
|
16
|
+
* The total number of steps that's done
|
|
17
|
+
*/
|
|
18
|
+
private getTotalSuccessStep;
|
|
19
|
+
private isTabClickable;
|
|
20
|
+
/**
|
|
21
|
+
* Set the tab items data. This is to be used in storybook
|
|
22
|
+
*/
|
|
23
|
+
setTabItems(tabItems: TabItems): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Set selected tab. Only set the tab if it's clickable
|
|
26
|
+
*/
|
|
27
|
+
setTabSelected(tabValue: TabItem['value']): Promise<void>;
|
|
28
|
+
render(): any;
|
|
29
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import type { ElementsUiStyle } from "../../../types/
|
|
2
|
+
import type { ElementsUiStyle } from "../../../types/generated/graphql.customer.types";
|
|
3
3
|
export declare class ZonosDialog {
|
|
4
4
|
/**
|
|
5
5
|
* Whether or not the dialog is open
|
|
@@ -34,11 +34,6 @@ export declare class ZonosDialog {
|
|
|
34
34
|
* @default false
|
|
35
35
|
*/
|
|
36
36
|
noBorder: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* The right area for the action in the footer
|
|
39
|
-
* @default null
|
|
40
|
-
*/
|
|
41
|
-
footerRightAction: HTMLElement | null;
|
|
42
37
|
/**
|
|
43
38
|
* The border style of the button
|
|
44
39
|
* @default ROUNDED
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Color } from "../../../types/
|
|
1
|
+
import type { Color } from "../../../types/styles/Color";
|
|
2
2
|
export declare class ZonosIcon {
|
|
3
3
|
/**
|
|
4
4
|
* Determines if the icon should be auto height instead of square
|
|
@@ -9,7 +9,9 @@ export declare class ZonosIcon {
|
|
|
9
9
|
* Color of the SVG
|
|
10
10
|
* @default 'gray-1200'
|
|
11
11
|
*/
|
|
12
|
-
iconColor: Color
|
|
12
|
+
iconColor: Color | (string & {
|
|
13
|
+
_placeholder?: never;
|
|
14
|
+
});
|
|
13
15
|
/**
|
|
14
16
|
* The content of the icon (full svg)
|
|
15
17
|
* @example
|
package/dist/types/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ElementsUiStyle, ElementsUiTheme } from "../../../types/generated/graphql.customer.types";
|
|
3
|
+
import type { Color } from "../../../types/styles/Color";
|
|
3
4
|
export type ShippingRichRadioItem = {
|
|
4
5
|
caption?: string;
|
|
5
6
|
label: string;
|
|
@@ -26,6 +27,10 @@ export declare class ZonosShippingRichRadio {
|
|
|
26
27
|
* Theme of the radio item
|
|
27
28
|
*/
|
|
28
29
|
theme?: ElementsUiTheme;
|
|
30
|
+
/**
|
|
31
|
+
* Initial selected value
|
|
32
|
+
*/
|
|
33
|
+
initialSelectedValue?: string | number;
|
|
29
34
|
/**
|
|
30
35
|
* Selected item
|
|
31
36
|
* @default {null|firstItem}
|
|
@@ -37,5 +42,6 @@ export declare class ZonosShippingRichRadio {
|
|
|
37
42
|
radioSelected?: EventEmitter<ShippingRichRadioItem>;
|
|
38
43
|
private handleRichRadioSelect;
|
|
39
44
|
private getRadioItemStyleVariables;
|
|
45
|
+
componentWillLoad(): void;
|
|
40
46
|
render(): any;
|
|
41
47
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import type { AppearanceConfig
|
|
2
|
+
import type { AppearanceConfig } from "../../store/zonosStore";
|
|
3
|
+
import type { HelloMobileLocation } from "../../../types/generated/graphql.customer.types";
|
|
3
4
|
import type { RestrictedItem } from "../../../types/hello/RestrictedItem";
|
|
4
5
|
export declare class ZonosHelloDialog {
|
|
5
6
|
/**
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { stripeStoreUpdateCheckoutSession } from "./stripe";
|
|
2
|
-
import type { CheckoutPresentmentFragment, CurrencyCode, ItemMeasurementType, ItemUnitOfMeasure, LandedCostFragment, ShipmentRatingFragment } from "../../../types/generated/graphql.customer.types";
|
|
2
|
+
import type { CheckoutPresentmentFragment, CurrencyCode, ItemMeasurementType, ItemType, ItemUnitOfMeasure, LandedCostFragment, ShipmentRatingFragment } from "../../../types/generated/graphql.customer.types";
|
|
3
|
+
type Step = 'customer-info' | 'shipping' | 'payment' | 'finish' | 'error';
|
|
4
|
+
export type TabItem = {
|
|
5
|
+
index: number;
|
|
6
|
+
isDone: boolean;
|
|
7
|
+
label: 'Customer' | 'Delivery' | 'Payment';
|
|
8
|
+
value: 'customer-info' | 'shipping' | 'payment';
|
|
9
|
+
};
|
|
10
|
+
export type TabItems = Record<TabItem['value'], TabItem>;
|
|
3
11
|
export type ItemMeasurement = {
|
|
4
12
|
/** Indicates what type of `Measurement`, e.g. weight, specific dim unit. */
|
|
5
13
|
type?: ItemMeasurementType;
|
|
@@ -13,15 +21,21 @@ type MappedCheckoutLandedCost = CheckoutPresentmentFragment & {
|
|
|
13
21
|
};
|
|
14
22
|
export type CartItem = {
|
|
15
23
|
amount: number;
|
|
24
|
+
attributes?: {
|
|
25
|
+
key: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}[];
|
|
16
28
|
countryOfOrigin?: string;
|
|
17
29
|
currencyCode: string;
|
|
18
30
|
description?: string;
|
|
19
31
|
hsCode?: string;
|
|
20
32
|
imageUrl?: string;
|
|
33
|
+
itemType?: ItemType;
|
|
21
34
|
measurements?: ItemMeasurement[];
|
|
22
35
|
metadata?: {
|
|
23
|
-
|
|
24
|
-
|
|
36
|
+
key: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}[];
|
|
25
39
|
name: string;
|
|
26
40
|
productId?: string;
|
|
27
41
|
quantity: number;
|
|
@@ -52,8 +66,9 @@ type CartStore = {
|
|
|
52
66
|
selectedShippingOptionTransitTime: string;
|
|
53
67
|
shipping: number;
|
|
54
68
|
shippingData: ShipmentRatingFragment[] | null;
|
|
55
|
-
step:
|
|
69
|
+
step: Step;
|
|
56
70
|
subtotal: number;
|
|
71
|
+
tabItems: TabItems;
|
|
57
72
|
total: number;
|
|
58
73
|
};
|
|
59
74
|
declare const cartStore: CartStore;
|
|
@@ -62,6 +62,9 @@ export declare const stringsArabic: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsBase: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsChinese: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsDanish: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsDutch: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsFrench: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsGerman: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsHebrew: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsIndonesian: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsItalian: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsJapanese: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsKorean: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsNorwegian: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsPolish: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsPortuguese: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsRussian: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsSpanish: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsSwedish: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsTurkish: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -62,6 +62,9 @@ export declare const stringsVietnamese: {
|
|
|
62
62
|
'No shipping method selected': {
|
|
63
63
|
value: string;
|
|
64
64
|
};
|
|
65
|
+
'No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.': {
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
65
68
|
'No shipping methods found - try editing your address or contacting support if the error persists': {
|
|
66
69
|
value: string;
|
|
67
70
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CurrencyConverter, LoadZonosParamsConfig } from "../../scripts/zonosBase";
|
|
2
|
-
import type { CheckoutConfig
|
|
2
|
+
import type { CheckoutConfig } from "../../types/checkout/CheckoutConfig";
|
|
3
3
|
import type { ElementsUiStyle, ElementsUiTheme, ZonosAttribution, ZonosSettingsQuery } from "../../types/generated/graphql.customer.types";
|
|
4
|
+
import type { HelloConfig } from "../../types/hello/HelloConfig";
|
|
4
5
|
export type AppearanceConfig = {
|
|
5
6
|
colorPrimary?: string;
|
|
6
7
|
colorSecondary?: string;
|
|
@@ -25,9 +26,17 @@ export type ZonosConfig = {
|
|
|
25
26
|
type ZonosStore = ZonosConfig & {
|
|
26
27
|
loadedConfig: boolean;
|
|
27
28
|
stripeApiKey?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Zonos API Key
|
|
31
|
+
* @note optional if tempCartData is available as we can pull the zonosApiKey from the tempCartData
|
|
32
|
+
*/
|
|
28
33
|
zonosApiKey: string;
|
|
29
34
|
};
|
|
30
35
|
declare const zonosStore: ZonosStore;
|
|
36
|
+
/**
|
|
37
|
+
* Get theme from media query if theme is SYSTEM, otherwise return the theme
|
|
38
|
+
*/
|
|
39
|
+
declare const getZonosStoreTheme: (theme: ElementsUiTheme) => Exclude<ElementsUiTheme, 'SYSTEM'>;
|
|
31
40
|
/**
|
|
32
41
|
* Init setting from zonos setting
|
|
33
42
|
*/
|
|
@@ -36,4 +45,4 @@ declare const zonosStoreInitSetting: ({ overrideSettings, zonosSettings, }: {
|
|
|
36
45
|
zonosSettings: ZonosSettingsQuery | null;
|
|
37
46
|
}) => void;
|
|
38
47
|
declare const zonosStoreFontFamily: () => string;
|
|
39
|
-
export { zonosStore, zonosStoreFontFamily, zonosStoreInitSetting };
|
|
48
|
+
export { getZonosStoreTheme, zonosStore, zonosStoreFontFamily, zonosStoreInitSetting, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CartItem } from "../../store/checkout/cart";
|
|
2
|
+
import type { TempCart } from "../../../types/checkout/api/TempCart";
|
|
3
|
+
/**
|
|
4
|
+
* Map the items from tempCart like how we do it in dgs
|
|
5
|
+
* @ref https://github.com/Zonos/ShippingQuoteService/blob/f8bd4f1ff41cb34b49b9f3f435576ec28dedf906/src/main/java/com/iglobal/services/shippingquote/dto/ShippingQuoteRequestDto.java#L393
|
|
6
|
+
*/
|
|
7
|
+
export declare const buildCartItemsByTempCart: (tempCartData: TempCart) => CartItem[];
|
|
@@ -4,7 +4,7 @@ export declare const getLocaleMessages: ({ countryCode, localeTo, storeId, }: {
|
|
|
4
4
|
localeTo?: string | undefined;
|
|
5
5
|
storeId: number;
|
|
6
6
|
}) => Promise<{
|
|
7
|
-
countryCodes: string[]
|
|
7
|
+
countryCodes: string[];
|
|
8
8
|
countryCodesPageMessageLinks: {
|
|
9
9
|
id: number;
|
|
10
10
|
message: {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TempCartItem } from "../../../../types/checkout/api/TempCart";
|
|
2
|
+
type AttributeKey = 'brand' | 'category' | 'color' | 'customization' | 'descriptionDetailed' | 'fabricContent' | 'ltlClass' | 'pickingLocation' | 'shipFromLocation' | 'size' | 'material' | 'status';
|
|
3
|
+
/**
|
|
4
|
+
* Map legacy item attribute to dgs item attributes
|
|
5
|
+
* @ref https://github.com/Zonos/ShippingQuoteService/blob/f8bd4f1ff41cb34b49b9f3f435576ec28dedf906/src/main/java/com/iglobal/services/shippingquote/dto/ShippingQuoteRequestDto.java#L412
|
|
6
|
+
*/
|
|
7
|
+
export declare const getAttributes: (item: TempCartItem) => {
|
|
8
|
+
key: AttributeKey;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ItemMeasurement } from "../../../store/checkout/cart";
|
|
2
|
+
import type { TempCartItem } from "../../../../types/checkout/api/TempCart";
|
|
3
|
+
/**
|
|
4
|
+
* Mapping legacy measurement with dgs
|
|
5
|
+
* @ref https://github.com/Zonos/ShippingQuoteService/blob/f8bd4f1ff41cb34b49b9f3f435576ec28dedf906/src/main/java/com/iglobal/services/shippingquote/dto/ShippingQuoteRequestDto.java#L441
|
|
6
|
+
*/
|
|
7
|
+
export declare const getMeasurements: (item: TempCartItem) => ItemMeasurement[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IDeepKeyof, IDeepPropertyType } from "../../types/
|
|
1
|
+
import type { IDeepKeyof, IDeepPropertyType } from "../../types/utils/deep/IDeepKeyof";
|
|
2
2
|
/**
|
|
3
3
|
* Will change a nested property on an object, and return a copy of the object with only that property changed.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IDeepKeyofAtIndex, IDeepPropertyTypeAtIndex } from "../../types/
|
|
1
|
+
import type { IDeepKeyofAtIndex, IDeepPropertyTypeAtIndex } from "../../types/utils/deep/IDeepKeyofAtIndex";
|
|
2
2
|
/**
|
|
3
3
|
* Will change a nested property on an object (with array), and return a copy of the object with only that property changed.
|
|
4
4
|
*
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type CustomEventMap = {
|
|
2
|
+
legacyCheckoutError: string;
|
|
3
|
+
'zonos-checkout-success': {
|
|
4
|
+
message: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Strongly typed custom event creation for all available events in zonos-checkout project
|
|
9
|
+
*/
|
|
10
|
+
export declare const createCustomEvent: <T extends (string & {
|
|
11
|
+
_placeholder?: undefined;
|
|
12
|
+
}) | keyof CustomEventMap>(eventName: T, detail?: (T extends keyof CustomEventMap ? CustomEventMap[T] : unknown) | undefined) => CustomEvent<T extends keyof CustomEventMap ? CustomEventMap[T] : unknown>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { JsonError
|
|
1
|
+
import type { JsonError } from "../../types/JsonError";
|
|
2
|
+
import type { NoInfer } from "../../types/NoInfer";
|
|
2
3
|
export type HandleFetchReturn<ResponseBody extends unknown> = {
|
|
3
4
|
errors: JsonError[];
|
|
4
5
|
json: NoInfer<ResponseBody> | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isColorVariable: (color?: string) => boolean
|
|
1
|
+
export declare const isColorVariable: (color?: string) => boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Filter out all of the undefined values from the object so we don't have undefined css variable values
|
|
4
|
+
*/
|
|
5
|
+
export declare const styles: (props: import("react").CSSProperties & {
|
|
6
|
+
[key: string]: string | undefined;
|
|
7
|
+
}) => Record<string, string>;
|