@zonos/elements 1.3.23 → 1.3.24
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-c734e909.js → cart-31ad351d.js} +180 -0
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{submitGtag-336b437c.js → submitGtag-d37af04d.js} +1 -1
- package/dist/cjs/zonos-address_8.cjs.entry.js +4 -4
- package/dist/cjs/zonos-badge_2.cjs.entry.js +2 -2
- package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
- package/dist/cjs/{zonos-cart-items_11.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +37 -8
- package/dist/cjs/zonos-checkout.cjs.entry.js +43 -3
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
- package/dist/cjs/zonos-hello.cjs.entry.js +9 -7
- package/dist/cjs/zonos-payment.cjs.entry.js +2 -2
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +4 -4
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +44 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +31 -10
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +4 -4
- package/dist/collection/components/common/zonos-rest-state/assets/Boxes.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Earth.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/EmptyBox.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Lock.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/PigBank.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Scribble.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Search.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Settings.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/ShoppingCart.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/SpilledCup.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Switch.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/TaxId.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Truck.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Warning.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.css +53 -0
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +102 -0
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
- package/dist/collection/components/main/zonos-controller.js +1 -1
- 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 +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js +8 -6
- package/dist/collection/components/utils/restStateType.js +16 -0
- package/dist/esm/{cart-67471b37.js → cart-8662415b.js} +180 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{submitGtag-1f42c748.js → submitGtag-07553cf5.js} +1 -1
- package/dist/esm/zonos-address_8.entry.js +4 -4
- package/dist/esm/zonos-badge_2.entry.js +2 -2
- package/dist/esm/zonos-card_2.entry.js +1 -1
- package/dist/esm/{zonos-cart-items_11.entry.js → zonos-cart-items_12.entry.js} +37 -9
- package/dist/esm/zonos-checkout.entry.js +44 -4
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_3.entry.js +3 -3
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +4 -4
- package/dist/esm/zonos-hello.entry.js +9 -7
- package/dist/esm/zonos-payment.entry.js +2 -2
- package/dist/esm/zonos-select-dialog-header_2.entry.js +4 -4
- package/dist/esm-es5/cart-8662415b.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{submitGtag-1f42c748.js → submitGtag-07553cf5.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-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-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
- package/dist/scripts/index.d.ts +53 -3
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +12 -0
- package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +8 -1
- package/dist/types/components/common/zonos-rest-state/zonos-rest-state.d.ts +21 -0
- 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/store/translationStore.d.ts +1 -1
- package/dist/types/components/utils/restStateType.d.ts +2 -0
- package/dist/types/components.d.ts +52 -3
- package/dist/zonos-elements/assets/Boxes.png +0 -0
- package/dist/zonos-elements/assets/Earth.png +0 -0
- package/dist/zonos-elements/assets/EmptyBox.png +0 -0
- package/dist/zonos-elements/assets/Lock.png +0 -0
- package/dist/zonos-elements/assets/PigBank.png +0 -0
- package/dist/zonos-elements/assets/Scribble.png +0 -0
- package/dist/zonos-elements/assets/Search.png +0 -0
- package/dist/zonos-elements/assets/Settings.png +0 -0
- package/dist/zonos-elements/assets/ShoppingCart.png +0 -0
- package/dist/zonos-elements/assets/SpilledCup.png +0 -0
- package/dist/zonos-elements/assets/Switch.png +0 -0
- package/dist/zonos-elements/assets/TaxId.png +0 -0
- package/dist/zonos-elements/assets/Truck.png +0 -0
- package/dist/zonos-elements/assets/Warning.png +0 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-144147f8.system.entry.js +1 -0
- package/dist/zonos-elements/{p-65671a64.system.entry.js → p-1620d0cc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0d30f36e.system.entry.js → p-1d7c9c24.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-065ada8a.system.js → p-1fed304e.system.js} +1 -1
- package/dist/zonos-elements/{p-498a0e18.entry.js → p-2701e08c.entry.js} +1 -1
- package/dist/zonos-elements/{p-6f132cee.system.entry.js → p-299bceb7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-52900b33.entry.js → p-33bcb4ab.entry.js} +1 -1
- package/dist/zonos-elements/{p-18464027.entry.js → p-41413c70.entry.js} +1 -1
- package/dist/zonos-elements/{p-44250644.entry.js → p-44c59c27.entry.js} +1 -1
- package/dist/zonos-elements/p-45969dde.system.entry.js +1 -0
- package/dist/zonos-elements/p-4f2986fa.system.entry.js +1 -0
- package/dist/zonos-elements/{p-8473827d.system.entry.js → p-5a11a235.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-607b5560.entry.js → p-6260d404.entry.js} +1 -1
- package/dist/zonos-elements/{p-7d61e6e5.entry.js → p-687f1f62.entry.js} +1 -1
- package/dist/zonos-elements/{p-234f8729.system.js → p-7d48c12c.system.js} +1 -1
- package/dist/zonos-elements/{p-c1879326.system.entry.js → p-7f08c0f4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8ed0769e.entry.js → p-81750812.entry.js} +1 -1
- package/dist/zonos-elements/{p-cbf13745.entry.js → p-84791c5c.entry.js} +1 -1
- package/dist/zonos-elements/{p-db9e87ec.entry.js → p-8e584524.entry.js} +1 -1
- package/dist/zonos-elements/{p-8171d013.system.entry.js → p-941a01be.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a67e5a9b.js +1 -0
- package/dist/zonos-elements/p-afc277d9.entry.js +1 -0
- package/dist/zonos-elements/{p-b9195764.system.entry.js → p-b45db572.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b56c38a9.entry.js +1 -0
- package/dist/zonos-elements/{p-5437dd24.system.entry.js → p-c41d1708.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-92c64a9c.system.entry.js → p-c8e83577.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-713bb92e.system.entry.js → p-cbe5c7bb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d1b8bfce.system.js +1 -0
- package/dist/zonos-elements/p-d29b5bff.entry.js +1 -0
- package/dist/zonos-elements/{p-083850d3.js → p-d6307a6d.js} +1 -1
- package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
- package/dist/zonos-elements/{p-a18555c8.entry.js → p-f3feed11.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +7 -15
- package/dist/esm-es5/cart-67471b37.js +0 -1
- package/dist/esm-es5/zonos-cart-items_11.entry.js +0 -1
- package/dist/zonos-elements/p-08d1cfc4.entry.js +0 -1
- package/dist/zonos-elements/p-440ac320.js +0 -1
- package/dist/zonos-elements/p-4a3b5fc8.entry.js +0 -1
- package/dist/zonos-elements/p-9c3a036e.system.js +0 -1
- package/dist/zonos-elements/p-af3ee45d.system.entry.js +0 -1
- package/dist/zonos-elements/p-b1ee97d8.entry.js +0 -1
- package/dist/zonos-elements/p-f7468131.system.entry.js +0 -1
- package/dist/zonos-elements/p-fedafdd2.system.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-3b46f3c3.js';
|
|
2
2
|
import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-8b9ea19c.js';
|
|
3
|
-
import { r as handleFetch, l as localizationStore, u as isValidSelector, t as translate, w as getZCountryUrlParam, x as setZCountryUrlParam, y as currencyDisplay, z as currencyConvertAndFormat, A as currencyConvert, B as currencyFormat } from './cart-
|
|
3
|
+
import { r as handleFetch, l as localizationStore, u as isValidSelector, t as translate, w as getZCountryUrlParam, x as setZCountryUrlParam, y as currencyDisplay, z as currencyConvertAndFormat, A as currencyConvert, B as currencyFormat } from './cart-8662415b.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { a as logError, l as log } from './logError-c456c092.js';
|
|
6
6
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
@@ -401,21 +401,23 @@ const detectItemRestrictions = async (newProducts) => {
|
|
|
401
401
|
return restrictedItemsWithName;
|
|
402
402
|
};
|
|
403
403
|
|
|
404
|
+
const matchUrlPattern = (urlPattern) => {
|
|
405
|
+
const trimmedUrl = urlPattern === null || urlPattern === void 0 ? void 0 : urlPattern.replace('www.', '').replace('https://', '');
|
|
406
|
+
return trimmedUrl && new RegExp(trimmedUrl).test(window.location.href);
|
|
407
|
+
};
|
|
404
408
|
const getCurrentHelloLocalePage = () => {
|
|
405
|
-
const { href } = window.location;
|
|
406
409
|
const { cartUrlPattern, homepageUrlPattern, productDetailUrlPattern, productListUrlPattern, } = zonosStore.helloSettings;
|
|
407
410
|
// The 'if' statements are sorted by most specific to least specific to help with regex matching
|
|
408
|
-
if (
|
|
411
|
+
if (matchUrlPattern(cartUrlPattern)) {
|
|
409
412
|
return 'cart';
|
|
410
413
|
}
|
|
411
|
-
if (productDetailUrlPattern
|
|
412
|
-
new RegExp(productDetailUrlPattern).test(href)) {
|
|
414
|
+
if (matchUrlPattern(productDetailUrlPattern)) {
|
|
413
415
|
return 'productDetail';
|
|
414
416
|
}
|
|
415
|
-
if (
|
|
417
|
+
if (matchUrlPattern(productListUrlPattern)) {
|
|
416
418
|
return 'productList';
|
|
417
419
|
}
|
|
418
|
-
if (
|
|
420
|
+
if (matchUrlPattern(homepageUrlPattern)) {
|
|
419
421
|
return 'home';
|
|
420
422
|
}
|
|
421
423
|
return '';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-3b46f3c3.js';
|
|
2
|
-
import { h as stripeStore } from './cart-
|
|
2
|
+
import { h as stripeStore } from './cart-8662415b.js';
|
|
3
3
|
import { a as logError } from './logError-c456c092.js';
|
|
4
4
|
import './zonosStore-8b9ea19c.js';
|
|
5
5
|
import './isDarkColor-5185b62c.js';
|
|
@@ -41,7 +41,7 @@ const ZonosPayment = class {
|
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
43
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: '0add83652f88a929eb76727e27455a0ddd6866fb', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: 'ff4eb31c3f402562d4c85848bf6bb34c4f0b1bab', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'fba7df5c0ca94d2374aab0f24e3111f4b08eff11', class: "zonos--payment-component" })));
|
|
45
45
|
}
|
|
46
46
|
get el() { return getElement(this); }
|
|
47
47
|
static get watchers() { return {
|
|
@@ -14,9 +14,9 @@ const ZonosSelectDialogHeader = class {
|
|
|
14
14
|
this.label = '';
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: 'aee08db0e889bd5a5b9084180f6ee038c120a3b2', class: "zonos--elements", style: {
|
|
18
18
|
'--font-family': zonosStoreFontFamily(),
|
|
19
|
-
} }, h("zonos-v-stack", { key: '
|
|
19
|
+
} }, h("zonos-v-stack", { key: '565a273f0037418387c0868c74943c3325ab6c35', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '0d994f27c948e49c092d016a0f1d6e453f80f00a', class: "zonos--select-dialog-header" }, h("zonos-text", { key: 'ee7bb796e921b2a14fa6201c8f17d0dfd9f3a3c2', type: "boldLabel" }, this.label), h("zonos-button", { key: '0e3a6c9c2cc4b67a51015b2fb7345c47a0e5ef23', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: 'ad9fb089fa4a571a5443431c0d686b4804d25b0a' }))));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
ZonosSelectDialogHeader.style = ZonosSelectDialogHeaderStyle0;
|
|
@@ -30,9 +30,9 @@ const VStack = class {
|
|
|
30
30
|
this.spacing = 24;
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: '9b7115624d2e27b1c6da58ac16f6059d5cad71a9', style: {
|
|
34
34
|
'--font-family': zonosStoreFontFamily(),
|
|
35
|
-
} }, h("div", { key: '
|
|
35
|
+
} }, h("div", { key: 'bd3ccd8700897292fd1a9ad40825c851a484fcf2', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: '1c6fe3e6dc8eda9461eb90180535c9bd563a1840' }))));
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
VStack.style = ZonosVStackStyle0;
|