@ikas/storefront 4.0.0-alpha.78 → 4.0.0-alpha.8
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/package.json +19 -21
- package/src/analytics/analytics.ts +536 -0
- package/src/analytics/events.ts +116 -0
- package/src/analytics/facebookPixel.ts +226 -0
- package/src/analytics/googleAnalytics.ts +227 -0
- package/src/analytics/googleTagManager.ts +341 -0
- package/src/analytics/googleUniversal.ts +136 -0
- package/src/analytics/head/index.tsx +135 -0
- package/src/analytics/ikas.ts +558 -0
- package/src/analytics/index.ts +2 -0
- package/src/analytics/tiktokPixel.ts +223 -0
- package/src/components/checkout/components/address-form/index.tsx +406 -0
- package/src/components/checkout/components/address-form/model.ts +397 -0
- package/src/components/checkout/components/button/index.tsx +44 -0
- package/src/components/checkout/components/button/style.module.scss +103 -0
- package/src/components/checkout/components/cart-summary/cart-item/index.tsx +180 -0
- package/src/components/checkout/components/cart-summary/cart-item/style.module.scss +107 -0
- package/src/components/checkout/components/cart-summary/index.tsx +481 -0
- package/src/components/checkout/components/cart-summary/style.module.scss +251 -0
- package/src/components/checkout/components/checkbox/check.tsx +23 -0
- package/src/components/checkout/components/checkbox/index.tsx +50 -0
- package/src/components/checkout/components/checkbox/style.module.scss +72 -0
- package/src/components/checkout/components/credit-card-form/index.tsx +122 -0
- package/src/components/checkout/components/credit-card-form/model.ts +56 -0
- package/src/components/checkout/components/credit-card-form/style.module.scss +6 -0
- package/src/components/checkout/components/credit-card-form/svg/amex.tsx +30 -0
- package/src/components/checkout/components/credit-card-form/svg/master-card.tsx +38 -0
- package/src/components/checkout/components/credit-card-form/svg/troy.tsx +54 -0
- package/src/components/checkout/components/credit-card-form/svg/visa.tsx +46 -0
- package/src/components/checkout/components/customer-addresses/index.tsx +333 -0
- package/src/components/checkout/components/customer-addresses/model.ts +126 -0
- package/src/components/checkout/components/customer-addresses/style.module.scss +38 -0
- package/src/components/checkout/components/delivery-methods/icon-button/index.tsx +29 -0
- package/src/components/checkout/components/delivery-methods/icon-button/style.module.scss +41 -0
- package/src/components/checkout/components/delivery-methods/icons/box.tsx +22 -0
- package/src/components/checkout/components/delivery-methods/icons/store.tsx +22 -0
- package/src/components/checkout/components/delivery-methods/index.tsx +39 -0
- package/src/components/checkout/components/delivery-methods/style.module.scss +4 -0
- package/src/components/checkout/components/error/customer-login-required-error/index.tsx +23 -0
- package/src/components/checkout/components/error/index.tsx +54 -0
- package/src/components/checkout/components/error/no-shipping-error/index.tsx +14 -0
- package/src/components/checkout/components/error/payment-error/index.tsx +21 -0
- package/src/components/checkout/components/error/stock-error/index.tsx +72 -0
- package/src/components/checkout/components/error/stock-error/style.module.scss +11 -0
- package/src/components/checkout/components/error/unknown-error/index.tsx +19 -0
- package/src/components/checkout/components/expandable-section/index.tsx +37 -0
- package/src/components/checkout/components/expandable-section/style.module.scss +29 -0
- package/src/components/checkout/components/form-item/caret-down.tsx +20 -0
- package/src/components/checkout/components/form-item/index.tsx +207 -0
- package/src/components/checkout/components/form-item/model.ts +145 -0
- package/src/components/checkout/components/form-item/style.module.scss +216 -0
- package/src/components/checkout/components/fullscreen-loading/index.tsx +10 -0
- package/src/components/checkout/components/fullscreen-loading/style.module.scss +56 -0
- package/src/components/checkout/components/input-with-button/index.tsx +53 -0
- package/src/components/checkout/components/input-with-button/style.module.scss +104 -0
- package/src/components/checkout/components/master-pass/credit-card-form/index.tsx +160 -0
- package/src/components/checkout/components/master-pass/credit-card-form/style.module.scss +15 -0
- package/src/components/checkout/components/master-pass/modal/index.tsx +32 -0
- package/src/components/checkout/components/master-pass/modal/style.module.scss +42 -0
- package/src/components/checkout/components/master-pass/modal/svg/modal-close.tsx +20 -0
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/index.tsx +62 -0
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss +27 -0
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.tsx +19 -0
- package/src/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.tsx +41 -0
- package/src/components/checkout/components/master-pass/modal-otp/index.tsx +202 -0
- package/src/components/checkout/components/master-pass/modal-otp/style.module.scss +47 -0
- package/src/components/checkout/components/master-pass/modal-otp/svg/master-pass.tsx +28 -0
- package/src/components/checkout/components/master-pass/modal-response/index.tsx +24 -0
- package/src/components/checkout/components/master-pass/modal-response/style.module.scss +7 -0
- package/src/components/checkout/components/master-pass/modal-success/index.tsx +54 -0
- package/src/components/checkout/components/master-pass/modal-success/style.module.scss +25 -0
- package/src/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.tsx +41 -0
- package/src/components/checkout/components/master-pass/modal-success/svg/success.tsx +21 -0
- package/src/components/checkout/components/master-pass/payment-gateway/svg/master-card.tsx +14 -0
- package/src/components/checkout/components/master-pass/svg/master-pass-by-master-card.tsx +34 -0
- package/src/components/checkout/components/modal/index.tsx +41 -0
- package/src/components/checkout/components/modal/style.module.scss +68 -0
- package/src/components/checkout/components/modal/useEscape.tsx +20 -0
- package/src/components/checkout/components/notification-box/index.tsx +70 -0
- package/src/components/checkout/components/notification-box/style.module.scss +69 -0
- package/src/components/checkout/components/offer-product/index.tsx +180 -0
- package/src/components/checkout/components/offer-product/select/arrows.tsx +22 -0
- package/src/components/checkout/components/offer-product/select/index.tsx +40 -0
- package/src/components/checkout/components/offer-product/select/style.module.scss +28 -0
- package/src/components/checkout/components/offer-product/style.module.scss +117 -0
- package/src/components/checkout/components/phone-number-input/compare-strings.ts +5 -0
- package/src/components/checkout/components/phone-number-input/get-countries.ts +52 -0
- package/src/components/checkout/components/phone-number-input/index.tsx +125 -0
- package/src/components/checkout/components/phone-number-input/style.module.scss +83 -0
- package/src/components/checkout/components/select-box/index.tsx +60 -0
- package/src/components/checkout/components/select-box/style.module.scss +55 -0
- package/src/components/checkout/components/step-container/index.tsx +107 -0
- package/src/components/checkout/components/step-container/style.module.scss +86 -0
- package/src/components/checkout/components/stripe/checkout-form.tsx +55 -0
- package/src/components/checkout/components/stripe/index.tsx +91 -0
- package/src/components/checkout/components/stripe/style.module.scss +75 -0
- package/src/components/checkout/components/svg/arrow-down.tsx +23 -0
- package/src/components/checkout/components/svg/arrow-left.tsx +23 -0
- package/src/components/checkout/components/svg/arrow-right.tsx +23 -0
- package/src/components/checkout/components/svg/cross.tsx +23 -0
- package/src/components/checkout/components/svg/discount.tsx +34 -0
- package/src/components/checkout/components/svg/external.tsx +101 -0
- package/src/components/checkout/components/svg/gift.tsx +40 -0
- package/src/components/checkout/components/svg/ikas.tsx +39 -0
- package/src/components/checkout/components/svg/lock.tsx +23 -0
- package/src/components/checkout/components/svg/shopping-cart.tsx +23 -0
- package/src/components/checkout/components/svg/success-circle.tsx +26 -0
- package/src/components/checkout/components/svg/tag.tsx +23 -0
- package/src/components/checkout/components/svg/warning.tsx +30 -0
- package/src/components/checkout/components/toggle/index.tsx +51 -0
- package/src/components/checkout/components/toggle/style.module.scss +75 -0
- package/src/components/checkout/components/tooltip/index.tsx +27 -0
- package/src/components/checkout/components/tooltip/style.module.scss +86 -0
- package/src/components/checkout/index.tsx +641 -0
- package/src/components/checkout/model.ts +1466 -0
- package/src/components/checkout/modelMasterPass.ts +1001 -0
- package/src/components/checkout/steps/step-info/index.tsx +85 -0
- package/src/components/checkout/steps/step-payment/billing-address/index.tsx +48 -0
- package/src/components/checkout/steps/step-payment/index.tsx +104 -0
- package/src/components/checkout/steps/step-payment/payment-gateways/index.tsx +218 -0
- package/src/components/checkout/steps/step-payment/payment-gateways/installments/index.tsx +54 -0
- package/src/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss +50 -0
- package/src/components/checkout/steps/step-payment/payment-gateways/style.module.scss +32 -0
- package/src/components/checkout/steps/step-payment/style.module.scss +32 -0
- package/src/components/checkout/steps/step-shipping/index.tsx +126 -0
- package/src/components/checkout/steps/step-shipping/style.module.scss +44 -0
- package/src/components/checkout/steps/step-success/index.tsx +366 -0
- package/src/components/checkout/steps/step-success/style.module.scss +161 -0
- package/src/components/checkout/style.module.scss +366 -0
- package/src/components/checkout/styles/common.module.scss +59 -0
- package/src/components/checkout/styles/variables.scss +40 -0
- package/src/components/image/index.tsx +43 -0
- package/src/components/index.ts +5 -0
- package/src/components/link/index.tsx +26 -0
- package/src/components/page/ThemeComponent.tsx +108 -0
- package/src/components/page/head.tsx +358 -0
- package/src/components/page/index.tsx +219 -0
- package/src/components/page-editor/ThemeComponentEditor.tsx +270 -0
- package/src/components/page-editor/error/index.tsx +18 -0
- package/src/components/page-editor/index.tsx +194 -0
- package/src/components/page-editor/loader/index.tsx +18 -0
- package/src/components/page-editor/loader/style.module.scss +59 -0
- package/src/components/page-editor/model.ts +847 -0
- package/src/index.ts +6 -0
- package/src/models/data/base/index.ts +15 -0
- package/src/models/data/blog/category/index.ts +36 -0
- package/src/models/data/blog/content/index.ts +16 -0
- package/src/models/data/blog/index.ts +75 -0
- package/src/models/data/blog/meta-data/index.ts +39 -0
- package/src/models/data/blog/tag/index.ts +16 -0
- package/src/models/data/blog/writer/index.ts +17 -0
- package/src/models/data/brand/index.ts +58 -0
- package/src/models/data/brand/translation/index.ts +16 -0
- package/src/models/data/campaign-offer/index.ts +79 -0
- package/src/models/data/campaign-offer/product/index.ts +69 -0
- package/src/models/data/cart/available-shipping-method/index.ts +25 -0
- package/src/models/data/cart/campaign-offer/index.ts +43 -0
- package/src/models/data/cart/index.ts +38 -0
- package/src/models/data/category/index.ts +69 -0
- package/src/models/data/category/init.ts +33 -0
- package/src/models/data/category/path-item/index.ts +42 -0
- package/src/models/data/category/translations/index.ts +16 -0
- package/src/models/data/checkout/index.ts +55 -0
- package/src/models/data/checkout-settings/index.ts +63 -0
- package/src/models/data/checkout-settings/option/index.ts +14 -0
- package/src/models/data/checkout-settings/price/index.ts +14 -0
- package/src/models/data/city/index.ts +34 -0
- package/src/models/data/contact-form/index.ts +20 -0
- package/src/models/data/country/index.ts +46 -0
- package/src/models/data/customer/address/city/index.ts +16 -0
- package/src/models/data/customer/address/country/index.ts +20 -0
- package/src/models/data/customer/address/district/index.ts +16 -0
- package/src/models/data/customer/address/index.tsx +136 -0
- package/src/models/data/customer/address/state/index.ts +16 -0
- package/src/models/data/customer/attribute/index.ts +61 -0
- package/src/models/data/customer/attribute/option/index.ts +20 -0
- package/src/models/data/customer/attribute/sales-channel/index.ts +24 -0
- package/src/models/data/customer/attribute/translation/index.ts +23 -0
- package/src/models/data/customer/attribute/translation/option/index.ts +16 -0
- package/src/models/data/customer/attribute/value/index.ts +29 -0
- package/src/models/data/customer/index.ts +122 -0
- package/src/models/data/customer/review/index.ts +70 -0
- package/src/models/data/customer/review/settings/index.ts +14 -0
- package/src/models/data/customer/review/summary/index.ts +29 -0
- package/src/models/data/customer/review/summary/star/index.ts +16 -0
- package/src/models/data/district/index.ts +36 -0
- package/src/models/data/favorite-product/index.ts +23 -0
- package/src/models/data/filter-category/index.ts +30 -0
- package/src/models/data/html-meta-data/index.ts +69 -0
- package/src/models/data/html-meta-data/translations/index.ts +16 -0
- package/src/models/data/image/index.ts +33 -0
- package/src/models/data/index.ts +192 -0
- package/src/models/data/last-viewed-product/index.ts +14 -0
- package/src/models/data/merchant-settings/index.ts +26 -0
- package/src/models/data/order/address/city/index.ts +16 -0
- package/src/models/data/order/address/country/index.ts +20 -0
- package/src/models/data/order/address/district/index.ts +16 -0
- package/src/models/data/order/address/index.ts +96 -0
- package/src/models/data/order/address/state/index.ts +16 -0
- package/src/models/data/order/adjustment/applied-order-line/index.ts +20 -0
- package/src/models/data/order/adjustment/index.ts +39 -0
- package/src/models/data/order/customer/index.ts +24 -0
- package/src/models/data/order/gift-line/index.ts +14 -0
- package/src/models/data/order/index.ts +241 -0
- package/src/models/data/order/invoice/index.ts +29 -0
- package/src/models/data/order/line-item/discount/index.ts +23 -0
- package/src/models/data/order/line-item/index.ts +153 -0
- package/src/models/data/order/line-item/option/index.ts +24 -0
- package/src/models/data/order/line-item/option/value/index.ts +16 -0
- package/src/models/data/order/line-item/variant/brand/index.ts +14 -0
- package/src/models/data/order/line-item/variant/category/index.ts +36 -0
- package/src/models/data/order/line-item/variant/index.ts +62 -0
- package/src/models/data/order/line-item/variant/price/index.ts +20 -0
- package/src/models/data/order/line-item/variant/value/index.ts +31 -0
- package/src/models/data/order/package/index.ts +41 -0
- package/src/models/data/order/package/tracking-info/index.ts +20 -0
- package/src/models/data/order/payment-method/index.ts +23 -0
- package/src/models/data/order/refund/index.ts +17 -0
- package/src/models/data/order/refund/line-item/index.ts +16 -0
- package/src/models/data/order/refund/settings/index.ts +16 -0
- package/src/models/data/order/shipping-line/index.ts +29 -0
- package/src/models/data/order/tax-line/index.ts +14 -0
- package/src/models/data/order/transaction/error/index.ts +16 -0
- package/src/models/data/order/transaction/index.ts +58 -0
- package/src/models/data/order/transaction/payment-method-detail/index.ts +33 -0
- package/src/models/data/order/transaction/payment-method-detail/installment-price/index.ts +22 -0
- package/src/models/data/payment-gateway/additional-price/index.ts +29 -0
- package/src/models/data/payment-gateway/index.ts +90 -0
- package/src/models/data/payment-gateway/settings/index.ts +21 -0
- package/src/models/data/payment-gateway/translation/index.ts +18 -0
- package/src/models/data/product/attribute/index.ts +37 -0
- package/src/models/data/product/attribute/option/index.ts +14 -0
- package/src/models/data/product/attribute/table-cell/index.ts +16 -0
- package/src/models/data/product/attribute/table-template/index.ts +19 -0
- package/src/models/data/product/attribute/translation/index.ts +39 -0
- package/src/models/data/product/attribute-value/index.ts +69 -0
- package/src/models/data/product/back-in-stock-settings/index.ts +14 -0
- package/src/models/data/product/campaign/data/index.ts +70 -0
- package/src/models/data/product/campaign/filter/index.ts +19 -0
- package/src/models/data/product/campaign/index.ts +15 -0
- package/src/models/data/product/campaign/product-buyx-then-gety/index.ts +57 -0
- package/src/models/data/product/campaign/product-campaign-date-range-field/index.ts +16 -0
- package/src/models/data/product/campaign/product-fixed-discount/index.ts +40 -0
- package/src/models/data/product/filter/index.ts +285 -0
- package/src/models/data/product/image/index.ts +22 -0
- package/src/models/data/product/index.ts +298 -0
- package/src/models/data/product/option-set/index.ts +94 -0
- package/src/models/data/product/option-set/option/index.ts +245 -0
- package/src/models/data/product/tag/index.ts +14 -0
- package/src/models/data/product/variant/index.ts +104 -0
- package/src/models/data/product/variant/price/index.ts +58 -0
- package/src/models/data/product/variant-type/index.ts +17 -0
- package/src/models/data/product/variant-type/init.ts +15 -0
- package/src/models/data/raffle/index.ts +155 -0
- package/src/models/data/sales-channel/index.ts +56 -0
- package/src/models/data/state/index.ts +18 -0
- package/src/models/data/stock-location/address/city/index.ts +16 -0
- package/src/models/data/stock-location/address/country/index.ts +18 -0
- package/src/models/data/stock-location/address/district/index.ts +18 -0
- package/src/models/data/stock-location/address/index.ts +34 -0
- package/src/models/data/stock-location/address/state/index.ts +18 -0
- package/src/models/data/stock-location/available/index.ts +22 -0
- package/src/models/data/stock-location/index.ts +35 -0
- package/src/models/data/storefront/domain/index.ts +20 -0
- package/src/models/data/storefront/index.ts +65 -0
- package/src/models/data/storefront/localization/index.tsx +18 -0
- package/src/models/data/storefront/routing/dynamic-currency/index.ts +16 -0
- package/src/models/data/storefront/routing/index.tsx +25 -0
- package/src/models/data/storefront/theme/index.tsx +25 -0
- package/src/models/data/storefront/theme-localization/index.tsx +31 -0
- package/src/models/data/theme-json/component/index.ts +41 -0
- package/src/models/data/theme-json/component/prop/index.ts +55 -0
- package/src/models/data/theme-json/custom-data/index.ts +132 -0
- package/src/models/data/theme-json/index.ts +210 -0
- package/src/models/data/theme-json/page/component/index.ts +22 -0
- package/src/models/data/theme-json/page/index.ts +54 -0
- package/src/models/data/theme-json/settings/color/index.ts +35 -0
- package/src/models/data/theme-json/settings/favicon/index.ts +12 -0
- package/src/models/data/theme-json/settings/font-family/index.ts +14 -0
- package/src/models/data/theme-json/settings/index.ts +30 -0
- package/src/models/data/variant-type/index.ts +44 -0
- package/src/models/data/variant-type/variant-value/index.ts +32 -0
- package/src/models/index.ts +2 -0
- package/src/models/ui/blog-category-list/index.ts +169 -0
- package/src/models/ui/blog-list/index.ts +175 -0
- package/src/models/ui/brand-list/index.ts +237 -0
- package/src/models/ui/category-list/index.ts +237 -0
- package/src/models/ui/component-renderer/index.ts +9 -0
- package/src/models/ui/customer-review-list/index.ts +173 -0
- package/src/models/ui/customer-review-summary-list/index.ts +175 -0
- package/src/models/ui/index.ts +40 -0
- package/src/models/ui/navigation-link/index.ts +23 -0
- package/src/models/ui/product-attribute-detail/index.ts +29 -0
- package/src/models/ui/product-attribute-list/index.ts +52 -0
- package/src/models/ui/product-list/index.ts +998 -0
- package/src/models/ui/raffle-list/index.ts +178 -0
- package/src/models/ui/validator/form/account-info.ts +167 -0
- package/src/models/ui/validator/form/address.ts +490 -0
- package/src/models/ui/validator/form/contact-form.ts +177 -0
- package/src/models/ui/validator/form/customer-review.ts +132 -0
- package/src/models/ui/validator/form/forgot-password.ts +96 -0
- package/src/models/ui/validator/form/login.ts +128 -0
- package/src/models/ui/validator/form/raffle-form.ts +276 -0
- package/src/models/ui/validator/form/recover-password.ts +148 -0
- package/src/models/ui/validator/form/register.ts +206 -0
- package/src/models/ui/validator/index.ts +121 -0
- package/src/models/ui/validator/rules/index.ts +310 -0
- package/src/page-data-init/index.ts +904 -0
- package/src/pages/404.tsx +10 -0
- package/src/pages/[slug]/index.tsx +9 -0
- package/src/pages/account/addresses.tsx +10 -0
- package/src/pages/account/favorite-products.tsx +9 -0
- package/src/pages/account/forgot-password.tsx +9 -0
- package/src/pages/account/index.tsx +9 -0
- package/src/pages/account/login.tsx +9 -0
- package/src/pages/account/orders/[id].tsx +9 -0
- package/src/pages/account/orders/index.tsx +9 -0
- package/src/pages/account/raffles.tsx +9 -0
- package/src/pages/account/recover-password.tsx +9 -0
- package/src/pages/account/register.tsx +9 -0
- package/src/pages/blog/[slug].tsx +9 -0
- package/src/pages/blog/index.tsx +9 -0
- package/src/pages/cart.tsx +9 -0
- package/src/pages/checkout.tsx +163 -0
- package/src/pages/editor.tsx +30 -0
- package/src/pages/home.tsx +10 -0
- package/src/pages/index.ts +22 -0
- package/src/pages/pages/[slug].tsx +9 -0
- package/src/pages/raffle/[slug].tsx +9 -0
- package/src/pages/raffle/index.tsx +9 -0
- package/src/pages/search.tsx +9 -0
- package/src/store/base.ts +238 -0
- package/src/store/blog/index.ts +49 -0
- package/src/store/brand/index.ts +16 -0
- package/src/store/cart/api.ts +58 -0
- package/src/store/cart/index.ts +311 -0
- package/src/store/category/index.ts +16 -0
- package/src/store/checkout/index.ts +92 -0
- package/src/store/customer/api.ts +273 -0
- package/src/store/customer/index.ts +658 -0
- package/src/store/html-meta-data/index.ts +16 -0
- package/src/store/index.ts +1 -0
- package/src/store/location/index.ts +56 -0
- package/src/store/merchant/index.ts +16 -0
- package/src/store/product/index.ts +113 -0
- package/src/store/raffle/index.ts +58 -0
- package/src/store/storefront/index.ts +18 -0
- package/src/typings/global.d.ts +7 -0
- package/src/utils/constants.ts +2 -0
- package/src/utils/currency.ts +250 -0
- package/src/utils/google-fonts.ts +52 -0
- package/src/utils/helper.ts +77 -0
- package/src/utils/i18n.ts +126 -0
- package/src/utils/index.ts +3 -0
- package/build/_virtual/_commonjsHelpers.js +0 -1
- package/build/_virtual/axios.js +0 -1
- package/build/_virtual/index.js +0 -1
- package/build/_virtual/index2.js +0 -1
- package/build/_virtual/index3.js +0 -1
- package/build/_virtual/react-is.development.js +0 -1
- package/build/_virtual/react-is.production.min.js +0 -1
- package/build/_virtual/react-stripe.umd.js +0 -1
- package/build/analytics/analytics.d.ts +0 -37
- package/build/analytics/analytics.js +0 -1
- package/build/analytics/events.d.ts +0 -37
- package/build/analytics/events.js +0 -1
- package/build/analytics/facebookPixel.d.ts +0 -15
- package/build/analytics/facebookPixel.js +0 -1
- package/build/analytics/googleAnalytics.d.ts +0 -13
- package/build/analytics/googleAnalytics.js +0 -1
- package/build/analytics/googleTagManager.d.ts +0 -203
- package/build/analytics/googleTagManager.js +0 -1
- package/build/analytics/googleUniversal.d.ts +0 -9
- package/build/analytics/googleUniversal.js +0 -1
- package/build/analytics/head/index.d.ts +0 -7
- package/build/analytics/head/index.js +0 -1
- package/build/analytics/ikas.d.ts +0 -134
- package/build/analytics/ikas.js +0 -1
- package/build/analytics/index.d.ts +0 -2
- package/build/analytics/tiktokPixel.d.ts +0 -13
- package/build/analytics/tiktokPixel.js +0 -1
- package/build/components/checkout/components/address-form/index.d.ts +0 -3
- package/build/components/checkout/components/address-form/index.js +0 -1
- package/build/components/checkout/components/address-form/model.d.ts +0 -87
- package/build/components/checkout/components/address-form/model.js +0 -1
- package/build/components/checkout/components/button/index.d.ts +0 -13
- package/build/components/checkout/components/button/index.js +0 -1
- package/build/components/checkout/components/button/style.module.scss.js +0 -1
- package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +0 -10
- package/build/components/checkout/components/cart-summary/cart-item/index.js +0 -1
- package/build/components/checkout/components/cart-summary/cart-item/style.module.scss.js +0 -1
- package/build/components/checkout/components/cart-summary/index.d.ts +0 -8
- package/build/components/checkout/components/cart-summary/index.js +0 -1
- package/build/components/checkout/components/cart-summary/style.module.scss.js +0 -1
- package/build/components/checkout/components/checkbox/check.d.ts +0 -6
- package/build/components/checkout/components/checkbox/check.js +0 -1
- package/build/components/checkout/components/checkbox/index.d.ts +0 -10
- package/build/components/checkout/components/checkbox/index.js +0 -1
- package/build/components/checkout/components/checkbox/style.module.scss.js +0 -1
- package/build/components/checkout/components/credit-card-form/index.d.ts +0 -7
- package/build/components/checkout/components/credit-card-form/index.js +0 -1
- package/build/components/checkout/components/credit-card-form/model.d.ts +0 -26
- package/build/components/checkout/components/credit-card-form/model.js +0 -1
- package/build/components/checkout/components/credit-card-form/style.module.scss.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/amex.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/master-card.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/troy.js +0 -1
- package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +0 -6
- package/build/components/checkout/components/credit-card-form/svg/visa.js +0 -1
- package/build/components/checkout/components/customer-addresses/index.d.ts +0 -19
- package/build/components/checkout/components/customer-addresses/index.js +0 -1
- package/build/components/checkout/components/customer-addresses/model.d.ts +0 -21
- package/build/components/checkout/components/customer-addresses/model.js +0 -1
- package/build/components/checkout/components/customer-addresses/style.module.scss.js +0 -1
- package/build/components/checkout/components/delivery-methods/icon-button/index.d.ts +0 -10
- package/build/components/checkout/components/delivery-methods/icon-button/index.js +0 -1
- package/build/components/checkout/components/delivery-methods/icon-button/style.module.scss.js +0 -1
- package/build/components/checkout/components/delivery-methods/icons/box.d.ts +0 -6
- package/build/components/checkout/components/delivery-methods/icons/box.js +0 -1
- package/build/components/checkout/components/delivery-methods/icons/store.d.ts +0 -6
- package/build/components/checkout/components/delivery-methods/icons/store.js +0 -1
- package/build/components/checkout/components/delivery-methods/index.d.ts +0 -7
- package/build/components/checkout/components/delivery-methods/index.js +0 -1
- package/build/components/checkout/components/delivery-methods/style.module.scss.js +0 -1
- package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/customer-login-required-error/index.js +0 -1
- package/build/components/checkout/components/error/index.d.ts +0 -7
- package/build/components/checkout/components/error/index.js +0 -1
- package/build/components/checkout/components/error/no-shipping-error/index.d.ts +0 -3
- package/build/components/checkout/components/error/no-shipping-error/index.js +0 -1
- package/build/components/checkout/components/error/payment-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/payment-error/index.js +0 -1
- package/build/components/checkout/components/error/stock-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/stock-error/index.js +0 -1
- package/build/components/checkout/components/error/stock-error/style.module.scss.js +0 -1
- package/build/components/checkout/components/error/unknown-error/index.d.ts +0 -8
- package/build/components/checkout/components/error/unknown-error/index.js +0 -1
- package/build/components/checkout/components/expandable-section/index.d.ts +0 -6
- package/build/components/checkout/components/expandable-section/index.js +0 -1
- package/build/components/checkout/components/expandable-section/style.module.scss.js +0 -1
- package/build/components/checkout/components/form-item/caret-down.d.ts +0 -6
- package/build/components/checkout/components/form-item/caret-down.js +0 -1
- package/build/components/checkout/components/form-item/index.d.ts +0 -3
- package/build/components/checkout/components/form-item/index.js +0 -1
- package/build/components/checkout/components/form-item/model.d.ts +0 -61
- package/build/components/checkout/components/form-item/model.js +0 -1
- package/build/components/checkout/components/form-item/style.module.scss.js +0 -1
- package/build/components/checkout/components/fullscreen-loading/index.d.ts +0 -2
- package/build/components/checkout/components/fullscreen-loading/index.js +0 -1
- package/build/components/checkout/components/fullscreen-loading/style.module.scss.js +0 -1
- package/build/components/checkout/components/input-with-button/index.d.ts +0 -11
- package/build/components/checkout/components/input-with-button/index.js +0 -1
- package/build/components/checkout/components/input-with-button/style.module.scss.js +0 -1
- package/build/components/checkout/components/klarna/index.d.ts +0 -7
- package/build/components/checkout/components/klarna/index.js +0 -1
- package/build/components/checkout/components/master-pass/credit-card-form/index.d.ts +0 -8
- package/build/components/checkout/components/master-pass/credit-card-form/index.js +0 -1
- package/build/components/checkout/components/master-pass/credit-card-form/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal/index.d.ts +0 -11
- package/build/components/checkout/components/master-pass/modal/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal/svg/modal-close.js +0 -1
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.d.ts +0 -10
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/info-mark.js +0 -1
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-link-card-to-client/svg/master-pass-by-master-card-big.js +0 -1
- package/build/components/checkout/components/master-pass/modal-otp/index.d.ts +0 -10
- package/build/components/checkout/components/master-pass/modal-otp/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-otp/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-otp/svg/master-pass.js +0 -1
- package/build/components/checkout/components/master-pass/modal-response/index.d.ts +0 -9
- package/build/components/checkout/components/master-pass/modal-response/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-response/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/index.d.ts +0 -10
- package/build/components/checkout/components/master-pass/modal-success/index.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/style.module.scss.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-success/svg/master-pass-by-master-card-small.js +0 -1
- package/build/components/checkout/components/master-pass/modal-success/svg/success.d.ts +0 -2
- package/build/components/checkout/components/master-pass/modal-success/svg/success.js +0 -1
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.d.ts +0 -2
- package/build/components/checkout/components/master-pass/payment-gateway/svg/master-card.js +0 -1
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.d.ts +0 -3
- package/build/components/checkout/components/master-pass/svg/master-pass-by-master-card.js +0 -1
- package/build/components/checkout/components/modal/index.d.ts +0 -8
- package/build/components/checkout/components/modal/index.js +0 -1
- package/build/components/checkout/components/modal/style.module.scss.js +0 -1
- package/build/components/checkout/components/modal/useEscape.d.ts +0 -5
- package/build/components/checkout/components/modal/useEscape.js +0 -1
- package/build/components/checkout/components/notification-box/index.d.ts +0 -9
- package/build/components/checkout/components/notification-box/index.js +0 -1
- package/build/components/checkout/components/notification-box/style.module.scss.js +0 -1
- package/build/components/checkout/components/offer-product/index.d.ts +0 -8
- package/build/components/checkout/components/offer-product/index.js +0 -1
- package/build/components/checkout/components/offer-product/select/arrows.d.ts +0 -6
- package/build/components/checkout/components/offer-product/select/arrows.js +0 -1
- package/build/components/checkout/components/offer-product/select/index.d.ts +0 -11
- package/build/components/checkout/components/offer-product/select/index.js +0 -1
- package/build/components/checkout/components/offer-product/select/style.module.scss.js +0 -1
- package/build/components/checkout/components/offer-product/style.module.scss.js +0 -1
- package/build/components/checkout/components/phone-number-input/compare-strings.d.ts +0 -2
- package/build/components/checkout/components/phone-number-input/compare-strings.js +0 -1
- package/build/components/checkout/components/phone-number-input/get-countries.d.ts +0 -7
- package/build/components/checkout/components/phone-number-input/get-countries.js +0 -1
- package/build/components/checkout/components/phone-number-input/index.d.ts +0 -10
- package/build/components/checkout/components/phone-number-input/index.js +0 -1
- package/build/components/checkout/components/phone-number-input/style.module.scss.js +0 -1
- package/build/components/checkout/components/select-box/index.d.ts +0 -13
- package/build/components/checkout/components/select-box/index.js +0 -1
- package/build/components/checkout/components/select-box/style.module.scss.js +0 -1
- package/build/components/checkout/components/step-container/index.d.ts +0 -15
- package/build/components/checkout/components/step-container/index.js +0 -1
- package/build/components/checkout/components/step-container/style.module.scss.js +0 -1
- package/build/components/checkout/components/stripe/checkout-form.d.ts +0 -8
- package/build/components/checkout/components/stripe/checkout-form.js +0 -1
- package/build/components/checkout/components/stripe/index.d.ts +0 -9
- package/build/components/checkout/components/stripe/index.js +0 -1
- package/build/components/checkout/components/stripe/style.module.scss.js +0 -1
- package/build/components/checkout/components/svg/arrow-down.d.ts +0 -6
- package/build/components/checkout/components/svg/arrow-down.js +0 -1
- package/build/components/checkout/components/svg/arrow-left.d.ts +0 -6
- package/build/components/checkout/components/svg/arrow-right.d.ts +0 -6
- package/build/components/checkout/components/svg/cross.d.ts +0 -6
- package/build/components/checkout/components/svg/cross.js +0 -1
- package/build/components/checkout/components/svg/discount.d.ts +0 -6
- package/build/components/checkout/components/svg/external.d.ts +0 -6
- package/build/components/checkout/components/svg/external.js +0 -1
- package/build/components/checkout/components/svg/gift.d.ts +0 -7
- package/build/components/checkout/components/svg/gift.js +0 -1
- package/build/components/checkout/components/svg/ikas.d.ts +0 -6
- package/build/components/checkout/components/svg/ikas.js +0 -1
- package/build/components/checkout/components/svg/lock.d.ts +0 -6
- package/build/components/checkout/components/svg/lock.js +0 -1
- package/build/components/checkout/components/svg/shopping-cart.d.ts +0 -6
- package/build/components/checkout/components/svg/success-circle.d.ts +0 -6
- package/build/components/checkout/components/svg/success-circle.js +0 -1
- package/build/components/checkout/components/svg/tag.d.ts +0 -6
- package/build/components/checkout/components/svg/warning.d.ts +0 -6
- package/build/components/checkout/components/svg/warning.js +0 -1
- package/build/components/checkout/components/toggle/index.d.ts +0 -10
- package/build/components/checkout/components/toggle/index.js +0 -1
- package/build/components/checkout/components/toggle/style.module.scss.js +0 -1
- package/build/components/checkout/components/tooltip/index.d.ts +0 -8
- package/build/components/checkout/components/tooltip/index.js +0 -1
- package/build/components/checkout/components/tooltip/style.module.scss.js +0 -1
- package/build/components/checkout/index.d.ts +0 -34
- package/build/components/checkout/index.js +0 -1
- package/build/components/checkout/model.d.ts +0 -173
- package/build/components/checkout/model.js +0 -1
- package/build/components/checkout/modelMasterPass.d.ts +0 -201
- package/build/components/checkout/modelMasterPass.js +0 -1
- package/build/components/checkout/steps/step-info/index.d.ts +0 -7
- package/build/components/checkout/steps/step-info/index.js +0 -1
- package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/billing-address/index.js +0 -1
- package/build/components/checkout/steps/step-payment/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/index.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +0 -7
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-payment/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-shipping/index.d.ts +0 -7
- package/build/components/checkout/steps/step-shipping/index.js +0 -1
- package/build/components/checkout/steps/step-shipping/style.module.scss.js +0 -1
- package/build/components/checkout/steps/step-success/index.d.ts +0 -7
- package/build/components/checkout/steps/step-success/index.js +0 -1
- package/build/components/checkout/steps/step-success/style.module.scss.js +0 -1
- package/build/components/checkout/style.module.scss.js +0 -1
- package/build/components/checkout/styles/common.module.scss.js +0 -1
- package/build/components/google-captcha/index.d.ts +0 -9
- package/build/components/google-captcha/index.js +0 -1
- package/build/components/image/index.d.ts +0 -10
- package/build/components/image/index.js +0 -1
- package/build/components/index.d.ts +0 -6
- package/build/components/link/index.d.ts +0 -16
- package/build/components/link/index.js +0 -1
- package/build/components/page/ThemeComponent.d.ts +0 -21
- package/build/components/page/ThemeComponent.js +0 -1
- package/build/components/page/head.d.ts +0 -15
- package/build/components/page/head.js +0 -1
- package/build/components/page/index.d.ts +0 -23
- package/build/components/page/index.js +0 -1
- package/build/components/page-editor/ThemeComponentEditor.d.ts +0 -32
- package/build/components/page-editor/ThemeComponentEditor.js +0 -1
- package/build/components/page-editor/error/index.d.ts +0 -4
- package/build/components/page-editor/error/index.js +0 -1
- package/build/components/page-editor/index.d.ts +0 -4
- package/build/components/page-editor/index.js +0 -1
- package/build/components/page-editor/loader/index.d.ts +0 -6
- package/build/components/page-editor/loader/index.js +0 -1
- package/build/components/page-editor/loader/style.module.scss.js +0 -1
- package/build/components/page-editor/model.d.ts +0 -75
- package/build/components/page-editor/model.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/_commonjsHelpers.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/axios-error-format.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/core.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/_virtual/index.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/axios-error-format.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/core.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/@redtea/format-axios-error/index.mjs.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Hash.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_ListCache.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Map.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_MapCache.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_Symbol.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_assocIndexOf.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseGetTag.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseIsNative.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_baseToString.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_coreJsData.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_defineProperty.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_freeGlobal.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getMapData.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getNative.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getRawTag.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_getValue.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashClear.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashDelete.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashGet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashHas.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_hashSet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isKeyable.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_isMasked.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheClear.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheDelete.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheGet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheHas.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_listCacheSet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheClear.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheDelete.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheGet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheHas.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_mapCacheSet.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_memoizeCapped.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_nativeCreate.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_objectToString.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_root.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_stringToPath.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/_toSource.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/eq.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/isFunction.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/isObject.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/ext/lodash/memoize.js +0 -1
- package/build/ext/@ikas/fe-api-client/build/utils/api.js +0 -1
- package/build/ext/@stripe/react-stripe-js/dist/react-stripe.umd.js +0 -1
- package/build/ext/@stripe/stripe-js/dist/stripe.esm.js +0 -1
- package/build/ext/axios/index.js +0 -1
- package/build/ext/axios/lib/adapters/xhr.js +0 -1
- package/build/ext/axios/lib/axios.js +0 -1
- package/build/ext/axios/lib/cancel/Cancel.js +0 -1
- package/build/ext/axios/lib/cancel/CancelToken.js +0 -1
- package/build/ext/axios/lib/cancel/isCancel.js +0 -1
- package/build/ext/axios/lib/core/Axios.js +0 -1
- package/build/ext/axios/lib/core/InterceptorManager.js +0 -1
- package/build/ext/axios/lib/core/buildFullPath.js +0 -1
- package/build/ext/axios/lib/core/createError.js +0 -1
- package/build/ext/axios/lib/core/dispatchRequest.js +0 -1
- package/build/ext/axios/lib/core/enhanceError.js +0 -1
- package/build/ext/axios/lib/core/mergeConfig.js +0 -1
- package/build/ext/axios/lib/core/settle.js +0 -1
- package/build/ext/axios/lib/core/transformData.js +0 -1
- package/build/ext/axios/lib/defaults/index.js +0 -1
- package/build/ext/axios/lib/defaults/transitional.js +0 -1
- package/build/ext/axios/lib/env/data.js +0 -1
- package/build/ext/axios/lib/helpers/bind.js +0 -1
- package/build/ext/axios/lib/helpers/buildURL.js +0 -1
- package/build/ext/axios/lib/helpers/combineURLs.js +0 -1
- package/build/ext/axios/lib/helpers/cookies.js +0 -1
- package/build/ext/axios/lib/helpers/isAbsoluteURL.js +0 -1
- package/build/ext/axios/lib/helpers/isAxiosError.js +0 -1
- package/build/ext/axios/lib/helpers/isURLSameOrigin.js +0 -1
- package/build/ext/axios/lib/helpers/normalizeHeaderName.js +0 -1
- package/build/ext/axios/lib/helpers/parseHeaders.js +0 -1
- package/build/ext/axios/lib/helpers/spread.js +0 -1
- package/build/ext/axios/lib/helpers/validator.js +0 -1
- package/build/ext/axios/lib/utils.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouType.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeFormatter.util.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeParser.js +0 -1
- package/build/ext/libphonenumber-js/es6/AsYouTypeState.js +0 -1
- package/build/ext/libphonenumber-js/es6/ParseError.js +0 -1
- package/build/ext/libphonenumber-js/es6/PhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/PhoneNumberMatcher.js +0 -1
- package/build/ext/libphonenumber-js/es6/constants.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/LRUCache.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/Leniency.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/RegExpCache.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/isValidCandidate.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/isValidPreCandidate.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/parsePreCandidate.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/utf-8.js +0 -1
- package/build/ext/libphonenumber-js/es6/findNumbers/util.js +0 -1
- package/build/ext/libphonenumber-js/es6/findPhoneNumbers_.js +0 -1
- package/build/ext/libphonenumber-js/es6/formatIncompletePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/format_.js +0 -1
- package/build/ext/libphonenumber-js/es6/getCountries.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/RFC3966.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/getNumberType.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/mergeArrays.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/parseDigits.js +0 -1
- package/build/ext/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -1
- package/build/ext/libphonenumber-js/es6/isPossibleNumber_.js +0 -1
- package/build/ext/libphonenumber-js/es6/metadata.js +0 -1
- package/build/ext/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/parsePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString.js +0 -1
- package/build/ext/libphonenumber-js/es6/parsePhoneNumberFromString_.js +0 -1
- package/build/ext/libphonenumber-js/es6/parsePhoneNumber_.js +0 -1
- package/build/ext/libphonenumber-js/es6/parse_.js +0 -1
- package/build/ext/libphonenumber-js/es6/tools/semver-compare.js +0 -1
- package/build/ext/libphonenumber-js/es6/validate_.js +0 -1
- package/build/ext/libphonenumber-js/index.es6.exports/PhoneNumberSearch.js +0 -1
- package/build/ext/libphonenumber-js/metadata.min.json.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/AsYouType.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/Metadata.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/PhoneNumberMatcher.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/formatIncompletePhoneNumber.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/getCountries.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/getCountryCallingCode.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/parsePhoneNumberFromString.js +0 -1
- package/build/ext/libphonenumber-js/min/exports/withMetadataArgument.js +0 -1
- package/build/ext/object-assign/index.js +0 -6
- package/build/ext/prop-types/checkPropTypes.js +0 -1
- package/build/ext/prop-types/factoryWithThrowingShims.js +0 -1
- package/build/ext/prop-types/factoryWithTypeCheckers.js +0 -1
- package/build/ext/prop-types/index.js +0 -1
- package/build/ext/prop-types/lib/ReactPropTypesSecret.js +0 -1
- package/build/ext/prop-types/lib/has.js +0 -1
- package/build/ext/react-is/cjs/react-is.development.js +0 -9
- package/build/ext/react-is/cjs/react-is.production.min.js +0 -9
- package/build/ext/react-is/index.js +0 -1
- package/build/ext/react-tooltip/dist/index.es.js +0 -1
- package/build/ext/style-inject/dist/style-inject.es.js +0 -1
- package/build/ext/tslib/tslib.es6.js +0 -1
- package/build/ext/uuid/dist/esm-browser/bytesToUuid.js +0 -1
- package/build/ext/uuid/dist/esm-browser/md5.js +0 -1
- package/build/ext/uuid/dist/esm-browser/rng.js +0 -1
- package/build/ext/uuid/dist/esm-browser/sha1.js +0 -1
- package/build/ext/uuid/dist/esm-browser/v3.js +0 -1
- package/build/ext/uuid/dist/esm-browser/v35.js +0 -1
- package/build/ext/uuid/dist/esm-browser/v4.js +0 -1
- package/build/ext/uuid/dist/esm-browser/v5.js +0 -1
- package/build/index.d.ts +0 -6
- package/build/index.js +0 -1
- package/build/models/data/base/index.d.ts +0 -8
- package/build/models/data/base/index.js +0 -1
- package/build/models/data/blog/category/index.d.ts +0 -12
- package/build/models/data/blog/category/index.js +0 -1
- package/build/models/data/blog/content/index.d.ts +0 -6
- package/build/models/data/blog/content/index.js +0 -1
- package/build/models/data/blog/index.d.ts +0 -27
- package/build/models/data/blog/index.js +0 -1
- package/build/models/data/blog/meta-data/index.d.ts +0 -16
- package/build/models/data/blog/meta-data/index.js +0 -1
- package/build/models/data/blog/tag/index.d.ts +0 -6
- package/build/models/data/blog/tag/index.js +0 -1
- package/build/models/data/blog/writer/index.d.ts +0 -6
- package/build/models/data/blog/writer/index.js +0 -1
- package/build/models/data/brand/index.d.ts +0 -26
- package/build/models/data/brand/index.js +0 -1
- package/build/models/data/brand/translation/index.d.ts +0 -7
- package/build/models/data/brand/translation/index.js +0 -1
- package/build/models/data/campaign-offer/index.d.ts +0 -21
- package/build/models/data/campaign-offer/index.js +0 -1
- package/build/models/data/campaign-offer/product/index.d.ts +0 -24
- package/build/models/data/campaign-offer/product/index.js +0 -1
- package/build/models/data/cart/available-shipping-method/index.d.ts +0 -10
- package/build/models/data/cart/available-shipping-method/index.js +0 -1
- package/build/models/data/cart/campaign-offer/index.d.ts +0 -16
- package/build/models/data/cart/campaign-offer/index.js +0 -1
- package/build/models/data/cart/index.d.ts +0 -13
- package/build/models/data/cart/index.js +0 -1
- package/build/models/data/category/index.d.ts +0 -22
- package/build/models/data/category/index.js +0 -1
- package/build/models/data/category/path-item/index.d.ts +0 -14
- package/build/models/data/category/path-item/index.js +0 -1
- package/build/models/data/category/translations/index.d.ts +0 -7
- package/build/models/data/category/translations/index.js +0 -1
- package/build/models/data/checkout/index.d.ts +0 -22
- package/build/models/data/checkout/index.js +0 -1
- package/build/models/data/checkout-settings/index.d.ts +0 -20
- package/build/models/data/checkout-settings/index.js +0 -1
- package/build/models/data/checkout-settings/option/index.d.ts +0 -6
- package/build/models/data/checkout-settings/option/index.js +0 -1
- package/build/models/data/checkout-settings/price/index.d.ts +0 -7
- package/build/models/data/checkout-settings/price/index.js +0 -1
- package/build/models/data/city/index.d.ts +0 -12
- package/build/models/data/city/index.js +0 -1
- package/build/models/data/contact-form/index.d.ts +0 -9
- package/build/models/data/contact-form/index.js +0 -1
- package/build/models/data/country/index.d.ts +0 -18
- package/build/models/data/country/index.js +0 -1
- package/build/models/data/country/location-translations/index.d.ts +0 -7
- package/build/models/data/customer/address/city/index.d.ts +0 -7
- package/build/models/data/customer/address/city/index.js +0 -1
- package/build/models/data/customer/address/country/index.d.ts +0 -9
- package/build/models/data/customer/address/country/index.js +0 -1
- package/build/models/data/customer/address/district/index.d.ts +0 -7
- package/build/models/data/customer/address/district/index.js +0 -1
- package/build/models/data/customer/address/index.d.ts +0 -40
- package/build/models/data/customer/address/index.js +0 -1
- package/build/models/data/customer/address/state/index.d.ts +0 -7
- package/build/models/data/customer/address/state/index.js +0 -1
- package/build/models/data/customer/attribute/index.d.ts +0 -17
- package/build/models/data/customer/attribute/index.js +0 -1
- package/build/models/data/customer/attribute/option/index.d.ts +0 -9
- package/build/models/data/customer/attribute/option/index.js +0 -1
- package/build/models/data/customer/attribute/sales-channel/index.d.ts +0 -8
- package/build/models/data/customer/attribute/sales-channel/index.js +0 -1
- package/build/models/data/customer/attribute/translation/index.d.ts +0 -9
- package/build/models/data/customer/attribute/translation/index.js +0 -1
- package/build/models/data/customer/attribute/translation/option/index.d.ts +0 -6
- package/build/models/data/customer/attribute/translation/option/index.js +0 -1
- package/build/models/data/customer/attribute/value/index.d.ts +0 -11
- package/build/models/data/customer/attribute/value/index.js +0 -1
- package/build/models/data/customer/index.d.ts +0 -38
- package/build/models/data/customer/index.js +0 -1
- package/build/models/data/customer/review/index.d.ts +0 -22
- package/build/models/data/customer/review/index.js +0 -1
- package/build/models/data/customer/review/settings/index.d.ts +0 -6
- package/build/models/data/customer/review/settings/index.js +0 -1
- package/build/models/data/customer/review/summary/index.d.ts +0 -10
- package/build/models/data/customer/review/summary/index.js +0 -1
- package/build/models/data/customer/review/summary/star/index.d.ts +0 -6
- package/build/models/data/customer/review/summary/star/index.js +0 -1
- package/build/models/data/district/index.d.ts +0 -12
- package/build/models/data/district/index.js +0 -1
- package/build/models/data/favorite-product/index.d.ts +0 -7
- package/build/models/data/favorite-product/index.js +0 -1
- package/build/models/data/filter-category/index.d.ts +0 -12
- package/build/models/data/filter-category/index.js +0 -1
- package/build/models/data/html-meta-data/index.d.ts +0 -28
- package/build/models/data/html-meta-data/index.js +0 -1
- package/build/models/data/html-meta-data/translations/index.d.ts +0 -7
- package/build/models/data/html-meta-data/translations/index.js +0 -1
- package/build/models/data/image/index.d.ts +0 -9
- package/build/models/data/image/index.js +0 -1
- package/build/models/data/index.d.ts +0 -136
- package/build/models/data/last-viewed-product/index.d.ts +0 -6
- package/build/models/data/last-viewed-product/index.js +0 -1
- package/build/models/data/merchant-settings/index.d.ts +0 -12
- package/build/models/data/merchant-settings/index.js +0 -1
- package/build/models/data/order/address/city/index.d.ts +0 -7
- package/build/models/data/order/address/city/index.js +0 -1
- package/build/models/data/order/address/country/index.d.ts +0 -9
- package/build/models/data/order/address/country/index.js +0 -1
- package/build/models/data/order/address/district/index.d.ts +0 -7
- package/build/models/data/order/address/district/index.js +0 -1
- package/build/models/data/order/address/index.d.ts +0 -37
- package/build/models/data/order/address/index.js +0 -1
- package/build/models/data/order/address/state/index.d.ts +0 -7
- package/build/models/data/order/address/state/index.js +0 -1
- package/build/models/data/order/adjustment/applied-order-line/index.d.ts +0 -8
- package/build/models/data/order/adjustment/applied-order-line/index.js +0 -1
- package/build/models/data/order/adjustment/index.d.ts +0 -15
- package/build/models/data/order/adjustment/index.js +0 -1
- package/build/models/data/order/customer/index.d.ts +0 -11
- package/build/models/data/order/customer/index.js +0 -1
- package/build/models/data/order/gift-line/index.d.ts +0 -6
- package/build/models/data/order/gift-line/index.js +0 -1
- package/build/models/data/order/index.d.ts +0 -68
- package/build/models/data/order/index.js +0 -1
- package/build/models/data/order/invoice/index.d.ts +0 -12
- package/build/models/data/order/invoice/index.js +0 -1
- package/build/models/data/order/line-item/base-unit/index.d.ts +0 -9
- package/build/models/data/order/line-item/base-unit/index.js +0 -1
- package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +0 -6
- package/build/models/data/order/line-item/base-unit/unit-type/index.js +0 -1
- package/build/models/data/order/line-item/discount/index.d.ts +0 -11
- package/build/models/data/order/line-item/discount/index.js +0 -1
- package/build/models/data/order/line-item/index.d.ts +0 -45
- package/build/models/data/order/line-item/index.js +0 -1
- package/build/models/data/order/line-item/option/index.d.ts +0 -10
- package/build/models/data/order/line-item/option/index.js +0 -1
- package/build/models/data/order/line-item/option/value/index.d.ts +0 -7
- package/build/models/data/order/line-item/option/value/index.js +0 -1
- package/build/models/data/order/line-item/variant/brand/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/brand/index.js +0 -1
- package/build/models/data/order/line-item/variant/category/index.d.ts +0 -12
- package/build/models/data/order/line-item/variant/category/index.js +0 -1
- package/build/models/data/order/line-item/variant/index.d.ts +0 -30
- package/build/models/data/order/line-item/variant/index.js +0 -1
- package/build/models/data/order/line-item/variant/price/index.d.ts +0 -10
- package/build/models/data/order/line-item/variant/price/index.js +0 -1
- package/build/models/data/order/line-item/variant/unit/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/unit/index.js +0 -1
- package/build/models/data/order/line-item/variant/value/index.d.ts +0 -11
- package/build/models/data/order/line-item/variant/value/index.js +0 -1
- package/build/models/data/order/package/index.d.ts +0 -14
- package/build/models/data/order/package/index.js +0 -1
- package/build/models/data/order/package/tracking-info/index.d.ts +0 -9
- package/build/models/data/order/package/tracking-info/index.js +0 -1
- package/build/models/data/order/payment-method/index.d.ts +0 -9
- package/build/models/data/order/payment-method/index.js +0 -1
- package/build/models/data/order/refund/index.d.ts +0 -7
- package/build/models/data/order/refund/index.js +0 -1
- package/build/models/data/order/refund/line-item/index.d.ts +0 -6
- package/build/models/data/order/refund/line-item/index.js +0 -1
- package/build/models/data/order/refund/settings/index.d.ts +0 -7
- package/build/models/data/order/refund/settings/index.js +0 -1
- package/build/models/data/order/shipping-line/index.d.ts +0 -12
- package/build/models/data/order/shipping-line/index.js +0 -1
- package/build/models/data/order/tax-line/index.d.ts +0 -6
- package/build/models/data/order/tax-line/index.js +0 -1
- package/build/models/data/order/transaction/error/index.d.ts +0 -7
- package/build/models/data/order/transaction/error/index.js +0 -1
- package/build/models/data/order/transaction/index.d.ts +0 -25
- package/build/models/data/order/transaction/index.js +0 -1
- package/build/models/data/order/transaction/payment-method-detail/index.d.ts +0 -13
- package/build/models/data/order/transaction/payment-method-detail/index.js +0 -1
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +0 -9
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +0 -1
- package/build/models/data/payment-gateway/additional-price/index.d.ts +0 -9
- package/build/models/data/payment-gateway/additional-price/index.js +0 -1
- package/build/models/data/payment-gateway/index.d.ts +0 -31
- package/build/models/data/payment-gateway/index.js +0 -1
- package/build/models/data/payment-gateway/settings/index.d.ts +0 -10
- package/build/models/data/payment-gateway/settings/index.js +0 -1
- package/build/models/data/payment-gateway/translation/index.d.ts +0 -7
- package/build/models/data/payment-gateway/translation/index.js +0 -1
- package/build/models/data/product/attribute/index.d.ts +0 -15
- package/build/models/data/product/attribute/index.js +0 -1
- package/build/models/data/product/attribute/option/index.d.ts +0 -6
- package/build/models/data/product/attribute/option/index.js +0 -1
- package/build/models/data/product/attribute/table-cell/index.d.ts +0 -6
- package/build/models/data/product/attribute/table-cell/index.js +0 -1
- package/build/models/data/product/attribute/table-template/index.d.ts +0 -7
- package/build/models/data/product/attribute/table-template/index.js +0 -1
- package/build/models/data/product/attribute/translation/index.d.ts +0 -13
- package/build/models/data/product/attribute/translation/index.js +0 -1
- package/build/models/data/product/attribute-value/index.d.ts +0 -28
- package/build/models/data/product/attribute-value/index.js +0 -1
- package/build/models/data/product/back-in-stock-settings/index.d.ts +0 -5
- package/build/models/data/product/back-in-stock-settings/index.js +0 -1
- package/build/models/data/product/base-unit/index.d.ts +0 -12
- package/build/models/data/product/base-unit/index.js +0 -1
- package/build/models/data/product/campaign/data/index.d.ts +0 -27
- package/build/models/data/product/campaign/data/index.js +0 -1
- package/build/models/data/product/campaign/filter/index.d.ts +0 -7
- package/build/models/data/product/campaign/filter/index.js +0 -1
- package/build/models/data/product/campaign/index.d.ts +0 -7
- package/build/models/data/product/campaign/index.js +0 -1
- package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +0 -20
- package/build/models/data/product/campaign/product-buyx-then-gety/index.js +0 -1
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +0 -6
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +0 -1
- package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +0 -14
- package/build/models/data/product/campaign/product-fixed-discount/index.js +0 -1
- package/build/models/data/product/filter/index.d.ts +0 -84
- package/build/models/data/product/filter/index.js +0 -1
- package/build/models/data/product/image/index.d.ts +0 -10
- package/build/models/data/product/image/index.js +0 -1
- package/build/models/data/product/index.d.ts +0 -62
- package/build/models/data/product/index.js +0 -1
- package/build/models/data/product/option-set/index.d.ts +0 -29
- package/build/models/data/product/option-set/index.js +0 -1
- package/build/models/data/product/option-set/option/index.d.ts +0 -72
- package/build/models/data/product/option-set/option/index.js +0 -1
- package/build/models/data/product/tag/index.d.ts +0 -6
- package/build/models/data/product/tag/index.js +0 -1
- package/build/models/data/product/variant/index.d.ts +0 -31
- package/build/models/data/product/variant/index.js +0 -1
- package/build/models/data/product/variant/price/index.d.ts +0 -19
- package/build/models/data/product/variant/price/index.js +0 -1
- package/build/models/data/product/variant/unit/index.d.ts +0 -6
- package/build/models/data/product/variant/unit/index.js +0 -1
- package/build/models/data/product/variant-type/index.d.ts +0 -8
- package/build/models/data/product/variant-type/index.js +0 -1
- package/build/models/data/product/variant-type/init.d.ts +0 -2
- package/build/models/data/raffle/index.d.ts +0 -63
- package/build/models/data/raffle/index.js +0 -1
- package/build/models/data/sales-channel/index.d.ts +0 -19
- package/build/models/data/sales-channel/index.js +0 -1
- package/build/models/data/state/index.d.ts +0 -8
- package/build/models/data/state/index.js +0 -1
- package/build/models/data/stock-location/address/city/index.d.ts +0 -7
- package/build/models/data/stock-location/address/city/index.js +0 -1
- package/build/models/data/stock-location/address/country/index.d.ts +0 -7
- package/build/models/data/stock-location/address/country/index.js +0 -1
- package/build/models/data/stock-location/address/district/index.d.ts +0 -7
- package/build/models/data/stock-location/address/district/index.js +0 -1
- package/build/models/data/stock-location/address/index.d.ts +0 -15
- package/build/models/data/stock-location/address/index.js +0 -1
- package/build/models/data/stock-location/address/state/index.d.ts +0 -7
- package/build/models/data/stock-location/address/state/index.js +0 -1
- package/build/models/data/stock-location/available/index.d.ts +0 -10
- package/build/models/data/stock-location/available/index.js +0 -1
- package/build/models/data/stock-location/index.d.ts +0 -14
- package/build/models/data/stock-location/index.js +0 -1
- package/build/models/data/storefront/domain/index.d.ts +0 -9
- package/build/models/data/storefront/domain/index.js +0 -1
- package/build/models/data/storefront/index.d.ts +0 -30
- package/build/models/data/storefront/index.js +0 -1
- package/build/models/data/storefront/localization/index.d.ts +0 -8
- package/build/models/data/storefront/localization/index.js +0 -1
- package/build/models/data/storefront/meta-templates/index.d.ts +0 -8
- package/build/models/data/storefront/meta-templates/index.js +0 -1
- package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +0 -6
- package/build/models/data/storefront/routing/dynamic-currency/index.js +0 -1
- package/build/models/data/storefront/routing/index.d.ts +0 -14
- package/build/models/data/storefront/routing/index.js +0 -1
- package/build/models/data/storefront/theme/index.d.ts +0 -10
- package/build/models/data/storefront/theme/index.js +0 -1
- package/build/models/data/storefront/theme-localization/index.d.ts +0 -15
- package/build/models/data/storefront/theme-localization/index.js +0 -1
- package/build/models/data/theme-json/component/index.d.ts +0 -20
- package/build/models/data/theme-json/component/index.js +0 -1
- package/build/models/data/theme-json/component/prop/index.d.ts +0 -26
- package/build/models/data/theme-json/component/prop/index.js +0 -1
- package/build/models/data/theme-json/custom-data/index.d.ts +0 -43
- package/build/models/data/theme-json/custom-data/index.js +0 -1
- package/build/models/data/theme-json/index.d.ts +0 -16
- package/build/models/data/theme-json/index.js +0 -1
- package/build/models/data/theme-json/page/component/index.d.ts +0 -7
- package/build/models/data/theme-json/page/component/index.js +0 -1
- package/build/models/data/theme-json/page/index.d.ts +0 -21
- package/build/models/data/theme-json/page/index.js +0 -1
- package/build/models/data/theme-json/settings/color/index.d.ts +0 -15
- package/build/models/data/theme-json/settings/color/index.js +0 -1
- package/build/models/data/theme-json/settings/favicon/index.d.ts +0 -5
- package/build/models/data/theme-json/settings/favicon/index.js +0 -1
- package/build/models/data/theme-json/settings/font-family/index.d.ts +0 -6
- package/build/models/data/theme-json/settings/font-family/index.js +0 -1
- package/build/models/data/theme-json/settings/index.d.ts +0 -13
- package/build/models/data/theme-json/settings/index.js +0 -1
- package/build/models/data/variant-type/index.d.ts +0 -13
- package/build/models/data/variant-type/index.js +0 -1
- package/build/models/data/variant-type/variant-value/index.d.ts +0 -12
- package/build/models/data/variant-type/variant-value/index.js +0 -1
- package/build/models/index.d.ts +0 -2
- package/build/models/ui/blog-category-list/index.d.ts +0 -51
- package/build/models/ui/blog-category-list/index.js +0 -1
- package/build/models/ui/blog-list/index.d.ts +0 -55
- package/build/models/ui/blog-list/index.js +0 -1
- package/build/models/ui/brand-list/index.d.ts +0 -61
- package/build/models/ui/brand-list/index.js +0 -1
- package/build/models/ui/category-list/index.d.ts +0 -61
- package/build/models/ui/category-list/index.js +0 -1
- package/build/models/ui/component-renderer/index.d.ts +0 -7
- package/build/models/ui/component-renderer/index.js +0 -1
- package/build/models/ui/customer-review-list/index.d.ts +0 -43
- package/build/models/ui/customer-review-list/index.js +0 -1
- package/build/models/ui/customer-review-summary-list/index.d.ts +0 -43
- package/build/models/ui/customer-review-summary-list/index.js +0 -1
- package/build/models/ui/index.d.ts +0 -25
- package/build/models/ui/navigation-link/index.d.ts +0 -8
- package/build/models/ui/navigation-link/index.js +0 -1
- package/build/models/ui/product-attribute-detail/index.d.ts +0 -8
- package/build/models/ui/product-attribute-detail/index.js +0 -1
- package/build/models/ui/product-attribute-list/index.d.ts +0 -8
- package/build/models/ui/product-attribute-list/index.js +0 -1
- package/build/models/ui/product-list/index.d.ts +0 -138
- package/build/models/ui/product-list/index.js +0 -1
- package/build/models/ui/raffle-list/index.d.ts +0 -53
- package/build/models/ui/raffle-list/index.js +0 -1
- package/build/models/ui/validator/form/account-info.d.ts +0 -39
- package/build/models/ui/validator/form/account-info.js +0 -1
- package/build/models/ui/validator/form/address.d.ts +0 -75
- package/build/models/ui/validator/form/address.js +0 -1
- package/build/models/ui/validator/form/contact-form.d.ts +0 -42
- package/build/models/ui/validator/form/contact-form.js +0 -1
- package/build/models/ui/validator/form/customer-review.d.ts +0 -34
- package/build/models/ui/validator/form/customer-review.js +0 -1
- package/build/models/ui/validator/form/forgot-password.d.ts +0 -26
- package/build/models/ui/validator/form/forgot-password.js +0 -1
- package/build/models/ui/validator/form/login.d.ts +0 -32
- package/build/models/ui/validator/form/login.js +0 -1
- package/build/models/ui/validator/form/raffle-form.d.ts +0 -62
- package/build/models/ui/validator/form/raffle-form.js +0 -1
- package/build/models/ui/validator/form/recover-password.d.ts +0 -33
- package/build/models/ui/validator/form/recover-password.js +0 -1
- package/build/models/ui/validator/form/register.d.ts +0 -49
- package/build/models/ui/validator/form/register.js +0 -1
- package/build/models/ui/validator/index.d.ts +0 -27
- package/build/models/ui/validator/index.js +0 -1
- package/build/models/ui/validator/rules/index.d.ts +0 -101
- package/build/models/ui/validator/rules/index.js +0 -1
- package/build/page-data-init/index.d.ts +0 -40
- package/build/page-data-init/index.js +0 -1
- package/build/pages/404.d.ts +0 -4
- package/build/pages/404.js +0 -1
- package/build/pages/[slug]/index.d.ts +0 -4
- package/build/pages/_slug_/index.js +0 -1
- package/build/pages/account/addresses.d.ts +0 -4
- package/build/pages/account/addresses.js +0 -1
- package/build/pages/account/favorite-products.d.ts +0 -4
- package/build/pages/account/favorite-products.js +0 -1
- package/build/pages/account/forgot-password.d.ts +0 -4
- package/build/pages/account/forgot-password.js +0 -1
- package/build/pages/account/index.d.ts +0 -4
- package/build/pages/account/index.js +0 -1
- package/build/pages/account/login.d.ts +0 -4
- package/build/pages/account/login.js +0 -1
- package/build/pages/account/orders/[id].d.ts +0 -4
- package/build/pages/account/orders/_id_.js +0 -1
- package/build/pages/account/orders/index.d.ts +0 -4
- package/build/pages/account/orders/index.js +0 -1
- package/build/pages/account/raffles.d.ts +0 -4
- package/build/pages/account/raffles.js +0 -1
- package/build/pages/account/recover-password.d.ts +0 -4
- package/build/pages/account/recover-password.js +0 -1
- package/build/pages/account/register.d.ts +0 -4
- package/build/pages/account/register.js +0 -1
- package/build/pages/blog/[slug].d.ts +0 -4
- package/build/pages/blog/_slug_.js +0 -1
- package/build/pages/blog/index.d.ts +0 -4
- package/build/pages/blog/index.js +0 -1
- package/build/pages/cart.d.ts +0 -4
- package/build/pages/cart.js +0 -1
- package/build/pages/checkout.d.ts +0 -18
- package/build/pages/checkout.js +0 -1
- package/build/pages/editor.d.ts +0 -10
- package/build/pages/editor.js +0 -1
- package/build/pages/home.d.ts +0 -4
- package/build/pages/home.js +0 -1
- package/build/pages/index.d.ts +0 -22
- package/build/pages/pages/[slug].d.ts +0 -4
- package/build/pages/pages/_slug_.js +0 -1
- package/build/pages/raffle/[slug].d.ts +0 -4
- package/build/pages/raffle/_slug_.js +0 -1
- package/build/pages/raffle/index.d.ts +0 -4
- package/build/pages/raffle/index.js +0 -1
- package/build/pages/search.d.ts +0 -4
- package/build/pages/search.js +0 -1
- package/build/store/base.d.ts +0 -44
- package/build/store/base.js +0 -1
- package/build/store/blog/index.d.ts +0 -26
- package/build/store/blog/index.js +0 -1
- package/build/store/brand/index.d.ts +0 -12
- package/build/store/brand/index.js +0 -1
- package/build/store/cart/api.d.ts +0 -10
- package/build/store/cart/api.js +0 -1
- package/build/store/cart/index.d.ts +0 -27
- package/build/store/cart/index.js +0 -1
- package/build/store/category/index.d.ts +0 -12
- package/build/store/category/index.js +0 -1
- package/build/store/checkout/index.d.ts +0 -15
- package/build/store/checkout/index.js +0 -1
- package/build/store/customer/api.d.ts +0 -54
- package/build/store/customer/api.js +0 -1
- package/build/store/customer/index.d.ts +0 -79
- package/build/store/customer/index.js +0 -1
- package/build/store/html-meta-data/index.d.ts +0 -6
- package/build/store/html-meta-data/index.js +0 -1
- package/build/store/index.d.ts +0 -3
- package/build/store/location/index.d.ts +0 -9
- package/build/store/location/index.js +0 -1
- package/build/store/merchant/index.d.ts +0 -6
- package/build/store/product/index.d.ts +0 -37
- package/build/store/product/index.js +0 -1
- package/build/store/raffle/index.d.ts +0 -15
- package/build/store/raffle/index.js +0 -1
- package/build/store/storefront/index.d.ts +0 -5
- package/build/utils/constants.d.ts +0 -2
- package/build/utils/constants.js +0 -1
- package/build/utils/currency.d.ts +0 -7
- package/build/utils/currency.js +0 -1
- package/build/utils/google-fonts.d.ts +0 -2
- package/build/utils/google-fonts.js +0 -1
- package/build/utils/helper.d.ts +0 -4
- package/build/utils/helper.js +0 -1
- package/build/utils/i18n.d.ts +0 -11
- package/build/utils/i18n.js +0 -1
- package/build/utils/index.d.ts +0 -3
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IkasProductOptionSelectType,
|
|
3
|
+
IkasProductOptionType,
|
|
4
|
+
IkasProductOptionOtherPrice as IProductOptionOtherPrice,
|
|
5
|
+
IkasProductOptionSelectValue as IProductOptionSelectValue,
|
|
6
|
+
IkasProductOptionSelectSettings as IProductOptionSelectSettings,
|
|
7
|
+
IkasProductOptionDateSettings as IProductOptionDateSettings,
|
|
8
|
+
IkasProductOptionTextSettings as IProductOptionTextSettings,
|
|
9
|
+
IkasProductOptionFileSettings as IProductOptionFileSettings,
|
|
10
|
+
IkasProductOption as IProductOption,
|
|
11
|
+
} from "@ikas/storefront-models";
|
|
12
|
+
import { makeAutoObservable } from "mobx";
|
|
13
|
+
import { IkasImage } from "../../../image";
|
|
14
|
+
import _sortBy from "lodash/sortBy";
|
|
15
|
+
import { IkasProductOptionFunctions } from "@ikas/storefront-model-functions";
|
|
16
|
+
import { uploadProductOptionFile } from "@ikas/storefront-api";
|
|
17
|
+
|
|
18
|
+
export class IkasProductOptionOtherPrice implements IProductOptionOtherPrice {
|
|
19
|
+
currencyCode: string;
|
|
20
|
+
price: number;
|
|
21
|
+
|
|
22
|
+
constructor(data: IProductOptionOtherPrice) {
|
|
23
|
+
this.currencyCode = data.currencyCode;
|
|
24
|
+
this.price = data.price;
|
|
25
|
+
|
|
26
|
+
makeAutoObservable(this);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class IkasProductOptionSelectValue implements IProductOptionSelectValue {
|
|
31
|
+
id: string;
|
|
32
|
+
order: number;
|
|
33
|
+
value: string;
|
|
34
|
+
price: number | null;
|
|
35
|
+
otherPrices: IkasProductOptionOtherPrice[] | null;
|
|
36
|
+
thumbnailImageId: string | null;
|
|
37
|
+
colorCode: string | null;
|
|
38
|
+
thumbnailImage: IkasImage | null;
|
|
39
|
+
|
|
40
|
+
constructor(data: Partial<IProductOptionSelectValue> = {}) {
|
|
41
|
+
this.id = data.id || "";
|
|
42
|
+
this.order = data.order || 0;
|
|
43
|
+
this.value = data.value || "";
|
|
44
|
+
this.price = data.price || null;
|
|
45
|
+
this.otherPrices = data.otherPrices || null;
|
|
46
|
+
this.thumbnailImageId = data.thumbnailImageId || null;
|
|
47
|
+
this.colorCode = data.colorCode || null;
|
|
48
|
+
this.thumbnailImage = data.thumbnailImage
|
|
49
|
+
? new IkasImage(data.thumbnailImage)
|
|
50
|
+
: null;
|
|
51
|
+
|
|
52
|
+
makeAutoObservable(this);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export class IkasProductOptionSelectSettings
|
|
57
|
+
implements IProductOptionSelectSettings
|
|
58
|
+
{
|
|
59
|
+
type: IkasProductOptionSelectType;
|
|
60
|
+
minSelect: number | null;
|
|
61
|
+
maxSelect: number | null;
|
|
62
|
+
values: IkasProductOptionSelectValue[];
|
|
63
|
+
|
|
64
|
+
constructor(data: Partial<IProductOptionSelectSettings> = {}) {
|
|
65
|
+
this.type = data.type || IkasProductOptionSelectType.BOX;
|
|
66
|
+
this.minSelect =
|
|
67
|
+
data.minSelect !== null && data.minSelect !== undefined
|
|
68
|
+
? data.minSelect
|
|
69
|
+
: null;
|
|
70
|
+
this.maxSelect =
|
|
71
|
+
data.maxSelect !== null && data.maxSelect !== undefined
|
|
72
|
+
? data.maxSelect
|
|
73
|
+
: null;
|
|
74
|
+
this.values = _sortBy(
|
|
75
|
+
data.values?.map((o) => new IkasProductOptionSelectValue(o)) || [],
|
|
76
|
+
"order"
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
makeAutoObservable(this);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export class IkasProductOptionDateSettings
|
|
84
|
+
implements IProductOptionDateSettings
|
|
85
|
+
{
|
|
86
|
+
min: Date | null;
|
|
87
|
+
max: Date | null;
|
|
88
|
+
minRelativeNextDate: number | null;
|
|
89
|
+
maxRelativeNextDate: number | null;
|
|
90
|
+
|
|
91
|
+
constructor(data: Partial<IProductOptionDateSettings>) {
|
|
92
|
+
this.min = data.min || null;
|
|
93
|
+
this.max = data.max || null;
|
|
94
|
+
this.minRelativeNextDate =
|
|
95
|
+
data.minRelativeNextDate !== undefined ? data.minRelativeNextDate : null;
|
|
96
|
+
this.maxRelativeNextDate =
|
|
97
|
+
data.maxRelativeNextDate !== undefined ? data.maxRelativeNextDate : null;
|
|
98
|
+
|
|
99
|
+
makeAutoObservable(this);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export class IkasProductOptionTextSettings
|
|
104
|
+
implements IProductOptionTextSettings
|
|
105
|
+
{
|
|
106
|
+
min: number | null;
|
|
107
|
+
max: number | null;
|
|
108
|
+
|
|
109
|
+
constructor(data: Partial<IProductOptionTextSettings> = {}) {
|
|
110
|
+
this.min = data.min !== null && data.min !== undefined ? data.min : null;
|
|
111
|
+
this.max = data.max !== null && data.max !== undefined ? data.max : null;
|
|
112
|
+
|
|
113
|
+
makeAutoObservable(this);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export class IkasProductOptionFileSettings {
|
|
118
|
+
allowedExtensions: string[] | null;
|
|
119
|
+
minQuantity: number | null;
|
|
120
|
+
maxQuantity: number | null;
|
|
121
|
+
|
|
122
|
+
constructor(data: Partial<IProductOptionFileSettings>) {
|
|
123
|
+
this.allowedExtensions = data.allowedExtensions || null;
|
|
124
|
+
this.minQuantity =
|
|
125
|
+
data.minQuantity !== null && data.minQuantity !== undefined
|
|
126
|
+
? data.minQuantity
|
|
127
|
+
: null;
|
|
128
|
+
this.maxQuantity =
|
|
129
|
+
data.maxQuantity !== null && data.maxQuantity !== undefined
|
|
130
|
+
? data.maxQuantity
|
|
131
|
+
: null;
|
|
132
|
+
|
|
133
|
+
makeAutoObservable(this);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export class IkasProductOption implements IProductOption {
|
|
138
|
+
id: string;
|
|
139
|
+
productOptionSetId: string;
|
|
140
|
+
name: string;
|
|
141
|
+
order: number;
|
|
142
|
+
type: IkasProductOptionType;
|
|
143
|
+
selectSettings: IkasProductOptionSelectSettings | null;
|
|
144
|
+
textSettings: IkasProductOptionTextSettings | null;
|
|
145
|
+
fileSettings: IkasProductOptionFileSettings | null;
|
|
146
|
+
dateSettings: IkasProductOptionDateSettings | null;
|
|
147
|
+
price: number | null;
|
|
148
|
+
otherPrices: IkasProductOptionOtherPrice[] | null;
|
|
149
|
+
isOptional: boolean;
|
|
150
|
+
optionalText: string | null;
|
|
151
|
+
requiredOptionId: string | null;
|
|
152
|
+
requiredOptionValueIds: string[] | null;
|
|
153
|
+
|
|
154
|
+
private _values: string[] = [];
|
|
155
|
+
private _childOptions: IkasProductOption[] = [];
|
|
156
|
+
|
|
157
|
+
constructor(data: Partial<IProductOption>) {
|
|
158
|
+
this.id = data.id || "";
|
|
159
|
+
this.productOptionSetId = data.productOptionSetId || "";
|
|
160
|
+
this.name = data.name || "";
|
|
161
|
+
this.order = data.order || 0;
|
|
162
|
+
this.type = data.type || IkasProductOptionType.CHOICE;
|
|
163
|
+
this.selectSettings = data.selectSettings
|
|
164
|
+
? new IkasProductOptionSelectSettings(data.selectSettings || {})
|
|
165
|
+
: null;
|
|
166
|
+
this.textSettings = data.textSettings
|
|
167
|
+
? new IkasProductOptionTextSettings(data.textSettings || {})
|
|
168
|
+
: null;
|
|
169
|
+
|
|
170
|
+
this.fileSettings = data.fileSettings
|
|
171
|
+
? new IkasProductOptionFileSettings(data.fileSettings || {})
|
|
172
|
+
: null;
|
|
173
|
+
this.dateSettings = data.dateSettings
|
|
174
|
+
? new IkasProductOptionDateSettings(data.dateSettings || {})
|
|
175
|
+
: null;
|
|
176
|
+
this.price = data.price || null;
|
|
177
|
+
this.otherPrices = data.otherPrices || null;
|
|
178
|
+
this.isOptional = data.isOptional || false;
|
|
179
|
+
this.optionalText = data.optionalText || null;
|
|
180
|
+
this.requiredOptionId = data.requiredOptionId || null;
|
|
181
|
+
this.requiredOptionValueIds = data.requiredOptionValueIds || null;
|
|
182
|
+
|
|
183
|
+
this.values = data.values || [];
|
|
184
|
+
//@ts-ignore
|
|
185
|
+
this.childOptions = data.childOptions || [];
|
|
186
|
+
|
|
187
|
+
makeAutoObservable(this);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
get displayedChildOptions() {
|
|
191
|
+
return IkasProductOptionFunctions.getDisplayedChildOptions(this).map(
|
|
192
|
+
(o) => new IkasProductOption(o)
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
productOptionFileUpload = async (files: File[]) => {
|
|
197
|
+
if (files.length === 0) return [];
|
|
198
|
+
if (
|
|
199
|
+
this.fileSettings &&
|
|
200
|
+
this.fileSettings.maxQuantity &&
|
|
201
|
+
this.fileSettings.maxQuantity < files.length
|
|
202
|
+
)
|
|
203
|
+
return [];
|
|
204
|
+
|
|
205
|
+
let fileIds = await Promise.all(
|
|
206
|
+
files.map((file) => uploadProductOptionFile(file, this))
|
|
207
|
+
);
|
|
208
|
+
fileIds = fileIds.filter((id) => id !== null);
|
|
209
|
+
return fileIds;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
get hasValidValues() {
|
|
213
|
+
return IkasProductOptionFunctions.hasValidValues(this);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
get values() {
|
|
217
|
+
return this._values;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
set values(values: string[]) {
|
|
221
|
+
this._values = values;
|
|
222
|
+
if (!values.length) {
|
|
223
|
+
this.childOptions.forEach((co) => (co.values = []));
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
get childOptions() {
|
|
228
|
+
return this._childOptions;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
set childOptions(options: IkasProductOption[]) {
|
|
232
|
+
this._childOptions = options;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
initValues = () => {
|
|
236
|
+
if (!this.isOptional) {
|
|
237
|
+
this.values = [];
|
|
238
|
+
if (this.childOptions) {
|
|
239
|
+
this.childOptions.forEach((co) => co.initValues());
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export { IkasProductOptionSelectType, IkasProductOptionType };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IkasProductTag as IProductTag } from "@ikas/storefront-models";
|
|
2
|
+
import { makeAutoObservable } from "mobx";
|
|
3
|
+
|
|
4
|
+
export class IkasProductTag implements IProductTag {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
|
|
8
|
+
constructor(data: IProductTag) {
|
|
9
|
+
this.id = data.id;
|
|
10
|
+
this.name = data.name;
|
|
11
|
+
|
|
12
|
+
makeAutoObservable(this);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { IkasProductPrice } from "./price";
|
|
2
|
+
import { IkasVariantValue } from "../../variant-type/variant-value";
|
|
3
|
+
import { IkasProductAttributeValue } from "../attribute-value";
|
|
4
|
+
import { IkasProductCampaign } from "../campaign";
|
|
5
|
+
import { IkasProductImage } from "../image";
|
|
6
|
+
import { IkasProductVariant as IProductVariant } from "@ikas/storefront-models";
|
|
7
|
+
import { makeAutoObservable } from "mobx";
|
|
8
|
+
import { IkasProductVariantFunctions } from "@ikas/storefront-model-functions";
|
|
9
|
+
import { IkasStorefrontConfig } from "@ikas/storefront-config";
|
|
10
|
+
import {
|
|
11
|
+
listProductBackInStockRemind,
|
|
12
|
+
saveProductBackInStockRemind,
|
|
13
|
+
} from "@ikas/storefront-api";
|
|
14
|
+
|
|
15
|
+
export class IkasProductVariant implements IProductVariant {
|
|
16
|
+
id: string;
|
|
17
|
+
sku: string | null;
|
|
18
|
+
barcodeList: string[] | null;
|
|
19
|
+
variantValues: IkasVariantValue[];
|
|
20
|
+
attributes: IkasProductAttributeValue[];
|
|
21
|
+
price: IkasProductPrice;
|
|
22
|
+
stock: number;
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
productId: string;
|
|
25
|
+
sellIfOutOfStock: boolean;
|
|
26
|
+
images: IkasProductImage[] | null;
|
|
27
|
+
campaigns?: IkasProductCampaign[];
|
|
28
|
+
private _backInStockReminderSaved = false;
|
|
29
|
+
|
|
30
|
+
constructor(data: Partial<IProductVariant> = {}) {
|
|
31
|
+
this.id = data.id || Date.now() + "";
|
|
32
|
+
this.productId = data.productId || "";
|
|
33
|
+
this.sku = data.sku || null;
|
|
34
|
+
this.barcodeList = data.barcodeList || [];
|
|
35
|
+
this.variantValues = data.variantValues
|
|
36
|
+
? data.variantValues.map((vv) => new IkasVariantValue(vv))
|
|
37
|
+
: [];
|
|
38
|
+
this.images = data.images
|
|
39
|
+
? data.images.map((i) => new IkasProductImage(i))
|
|
40
|
+
: [];
|
|
41
|
+
this.attributes = data.attributes
|
|
42
|
+
? data.attributes.map((a) => new IkasProductAttributeValue(a))
|
|
43
|
+
: [];
|
|
44
|
+
this.price = data.price
|
|
45
|
+
? new IkasProductPrice(data.price)
|
|
46
|
+
: new IkasProductPrice();
|
|
47
|
+
this.stock = data.stock || 0;
|
|
48
|
+
this.isActive = data.isActive !== undefined ? data.isActive : true;
|
|
49
|
+
this.campaigns = data.campaigns || [];
|
|
50
|
+
this.sellIfOutOfStock = data.sellIfOutOfStock || false;
|
|
51
|
+
|
|
52
|
+
makeAutoObservable(this);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
get mainImage() {
|
|
56
|
+
const _image = IkasProductVariantFunctions.getMainImage(this);
|
|
57
|
+
return _image ? new IkasProductImage(_image) : undefined;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
get hasStock() {
|
|
61
|
+
return IkasProductVariantFunctions.hasStock(this);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
get isBackInStockEnabled() {
|
|
65
|
+
return IkasStorefrontConfig.isBackInStockEnabled();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
get isBackInStockCustomerLoginRequired() {
|
|
69
|
+
return IkasStorefrontConfig.isCustomerLoginRequiredForBackInStock();
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
get isBackInStockReminderSaved() {
|
|
73
|
+
return this._backInStockReminderSaved;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
async saveBackInStockReminder(email: string) {
|
|
77
|
+
const listResponse = await listProductBackInStockRemind({
|
|
78
|
+
email: { eq: email },
|
|
79
|
+
productId: { eq: this.productId },
|
|
80
|
+
variantId: { eq: this.id },
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
if (listResponse && listResponse.data?.length) {
|
|
84
|
+
this._backInStockReminderSaved = true;
|
|
85
|
+
return false;
|
|
86
|
+
} else {
|
|
87
|
+
const saveResponse = await saveProductBackInStockRemind({
|
|
88
|
+
input: {
|
|
89
|
+
email,
|
|
90
|
+
productId: this.productId,
|
|
91
|
+
variantId: this.id,
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
if (saveResponse.isSuccess) {
|
|
96
|
+
this._backInStockReminderSaved = true;
|
|
97
|
+
return true;
|
|
98
|
+
} else {
|
|
99
|
+
this._backInStockReminderSaved = false;
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { IkasProductPriceFunctions } from "@ikas/storefront-model-functions";
|
|
2
|
+
import { IkasProductPrice as IProductPrice } from "@ikas/storefront-models";
|
|
3
|
+
import { makeAutoObservable } from "mobx";
|
|
4
|
+
import { getCurrencySymbol, formatMoney } from "../../../../../utils/currency";
|
|
5
|
+
|
|
6
|
+
export class IkasProductPrice implements IProductPrice {
|
|
7
|
+
buyPrice: number | null = null;
|
|
8
|
+
currency: string | null = null;
|
|
9
|
+
discountPrice: number | null = null;
|
|
10
|
+
priceListId: string | null = null;
|
|
11
|
+
sellPrice: number;
|
|
12
|
+
|
|
13
|
+
constructor(data?: IProductPrice) {
|
|
14
|
+
this.buyPrice = data?.buyPrice ?? null;
|
|
15
|
+
this.currency = data?.currency ?? null;
|
|
16
|
+
this.discountPrice = data?.discountPrice ?? null;
|
|
17
|
+
this.priceListId = data?.priceListId ?? null;
|
|
18
|
+
this.sellPrice = data?.sellPrice ?? 0;
|
|
19
|
+
|
|
20
|
+
makeAutoObservable(this);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
get currencySymbol() {
|
|
24
|
+
return getCurrencySymbol(this.currency || "");
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
get finalPrice() {
|
|
28
|
+
return IkasProductPriceFunctions.getFinalPrice(this);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
get formattedFinalPrice() {
|
|
32
|
+
return formatMoney(this.finalPrice, this.currencySymbol);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
get formattedBuyPrice() {
|
|
36
|
+
return formatMoney(this.buyPrice || 0, this.currencySymbol);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
get formattedDiscountPrice() {
|
|
40
|
+
return formatMoney(this.discountPrice || 0, this.currencySymbol);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
get formattedSellPrice() {
|
|
44
|
+
return formatMoney(this.sellPrice || 0, this.currencySymbol);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
get hasDiscount() {
|
|
48
|
+
return IkasProductPriceFunctions.hasDiscount(this);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
get discountAmount() {
|
|
52
|
+
return IkasProductPriceFunctions.getDiscountAmount(this);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
get discountPercentage() {
|
|
56
|
+
return IkasProductPriceFunctions.getDiscountPercentage(this);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IkasVariantType } from "../../variant-type";
|
|
2
|
+
import { IkasProductVariantType as IProductVariantType } from "@ikas/storefront-models";
|
|
3
|
+
import { makeAutoObservable } from "mobx";
|
|
4
|
+
|
|
5
|
+
export class IkasProductVariantType implements IProductVariantType {
|
|
6
|
+
variantType: IkasVariantType;
|
|
7
|
+
variantValueIds: string[];
|
|
8
|
+
|
|
9
|
+
constructor(data: Partial<IkasProductVariantType>) {
|
|
10
|
+
this.variantType = data.variantType
|
|
11
|
+
? new IkasVariantType(data.variantType)
|
|
12
|
+
: new IkasVariantType();
|
|
13
|
+
this.variantValueIds = data.variantValueIds || [];
|
|
14
|
+
|
|
15
|
+
makeAutoObservable(this);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IkasProductVariantType } from ".";
|
|
2
|
+
import { IkasVariantValue } from "../../variant-type/variant-value";
|
|
3
|
+
|
|
4
|
+
export function initIkasProductVariantType(
|
|
5
|
+
variantType: IkasProductVariantType
|
|
6
|
+
) {
|
|
7
|
+
const orderedVariantValues: IkasVariantValue[] = [];
|
|
8
|
+
variantType.variantValueIds.forEach((vvId) => {
|
|
9
|
+
const variantValue = variantType.variantType.values.find(
|
|
10
|
+
(vv) => vv.id === vvId
|
|
11
|
+
);
|
|
12
|
+
if (variantValue) orderedVariantValues.push(variantValue);
|
|
13
|
+
});
|
|
14
|
+
variantType.variantType.values = orderedVariantValues;
|
|
15
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { makeAutoObservable } from "mobx";
|
|
2
|
+
import { IkasProduct } from "../product";
|
|
3
|
+
import {
|
|
4
|
+
IkasRaffleDateRangeField as IRaffleDateRangeField,
|
|
5
|
+
IkasRaffle as IRaffle,
|
|
6
|
+
IkasRaffleMetaData as IRaffleMetaData,
|
|
7
|
+
IkasRaffleParticipant as IRaffleParticipant,
|
|
8
|
+
IkasRaffleAppliedProduct as IRaffleAppliedProduct,
|
|
9
|
+
IkasRaffleVerificationType,
|
|
10
|
+
IkasRaffleMetadataTargetType,
|
|
11
|
+
} from "@ikas/storefront-models";
|
|
12
|
+
import { IkasRaffleFunctions } from "@ikas/storefront-model-functions";
|
|
13
|
+
|
|
14
|
+
export { IkasRaffleVerificationType, IkasRaffleMetadataTargetType };
|
|
15
|
+
|
|
16
|
+
export class IkasRaffleDateRangeField implements IRaffleDateRangeField {
|
|
17
|
+
start: number | null;
|
|
18
|
+
end: number | null;
|
|
19
|
+
|
|
20
|
+
constructor(data: Partial<IkasRaffleDateRangeField>) {
|
|
21
|
+
this.start = data.start || null;
|
|
22
|
+
this.end = data.end || null;
|
|
23
|
+
|
|
24
|
+
makeAutoObservable(this);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class IkasRaffle implements IRaffle {
|
|
29
|
+
id: string;
|
|
30
|
+
createdAt: number;
|
|
31
|
+
updatedAt: number;
|
|
32
|
+
deleted: boolean | null;
|
|
33
|
+
dateRange: IkasRaffleDateRangeField | null;
|
|
34
|
+
metadata: IkasRaffleMetaData | null;
|
|
35
|
+
name: string;
|
|
36
|
+
participantCount?: number | null;
|
|
37
|
+
requiredCustomerAccount: boolean;
|
|
38
|
+
status: boolean;
|
|
39
|
+
variants: IkasRaffleAppliedProduct[] | null;
|
|
40
|
+
products: IkasProduct[];
|
|
41
|
+
verificationType: IkasRaffleVerificationType;
|
|
42
|
+
isCustomerWinner: boolean | null;
|
|
43
|
+
|
|
44
|
+
constructor(data: Partial<IkasRaffle> = {}) {
|
|
45
|
+
this.id = data.id || Date.now() + "";
|
|
46
|
+
this.createdAt = data.createdAt || Date.now();
|
|
47
|
+
this.updatedAt = data.updatedAt || Date.now();
|
|
48
|
+
this.deleted = data.deleted || null;
|
|
49
|
+
this.name = data.name || "";
|
|
50
|
+
this.participantCount = data.participantCount || 0;
|
|
51
|
+
this.requiredCustomerAccount = data.requiredCustomerAccount || false;
|
|
52
|
+
this.status = data.status || false;
|
|
53
|
+
this.verificationType =
|
|
54
|
+
data.verificationType || IkasRaffleVerificationType.EMAIL;
|
|
55
|
+
this.isCustomerWinner = data.isCustomerWinner || null;
|
|
56
|
+
|
|
57
|
+
this.dateRange = data.dateRange
|
|
58
|
+
? new IkasRaffleDateRangeField(data.dateRange)
|
|
59
|
+
: null;
|
|
60
|
+
this.metadata = data.metadata
|
|
61
|
+
? new IkasRaffleMetaData(data.metadata)
|
|
62
|
+
: null;
|
|
63
|
+
this.variants =
|
|
64
|
+
data.variants?.map((v) => new IkasRaffleAppliedProduct(v)) || [];
|
|
65
|
+
this.products = data.products?.map((p) => new IkasProduct(p)) || [];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
get isRaffleAvailable() {
|
|
69
|
+
return IkasRaffleFunctions.isRaffleAvailable(this);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export class IkasRaffleMetaData implements IRaffleMetaData {
|
|
74
|
+
id: string;
|
|
75
|
+
createdAt: number;
|
|
76
|
+
updatedAt: number;
|
|
77
|
+
deleted: boolean | null;
|
|
78
|
+
description: string | null;
|
|
79
|
+
pageTitle: string | null;
|
|
80
|
+
slug: string;
|
|
81
|
+
targetId: string | null;
|
|
82
|
+
targetType: IkasRaffleMetadataTargetType | null;
|
|
83
|
+
canonicals: string[] | null = null;
|
|
84
|
+
disableIndex: boolean | null = null;
|
|
85
|
+
|
|
86
|
+
constructor(data: Partial<IkasRaffleMetaData>) {
|
|
87
|
+
this.id = data.id || Date.now() + "";
|
|
88
|
+
this.createdAt = data.createdAt || Date.now();
|
|
89
|
+
this.updatedAt = data.updatedAt || Date.now();
|
|
90
|
+
this.deleted = data.deleted || null;
|
|
91
|
+
this.description = data.description || "";
|
|
92
|
+
this.pageTitle = data.pageTitle || "";
|
|
93
|
+
this.slug = data.slug || "";
|
|
94
|
+
this.targetId = data.targetId || "";
|
|
95
|
+
this.targetType = data.targetType || IkasRaffleMetadataTargetType.RAFFLE;
|
|
96
|
+
this.canonicals = data.canonicals ?? null;
|
|
97
|
+
this.disableIndex = data.disableIndex ?? null;
|
|
98
|
+
|
|
99
|
+
makeAutoObservable(this);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export class IkasRaffleParticipant implements IRaffleParticipant {
|
|
104
|
+
id: string | null = null;
|
|
105
|
+
createdAt: number | null = null;
|
|
106
|
+
updatedAt: number | null = null;
|
|
107
|
+
deleted: boolean | null = null;
|
|
108
|
+
customerId: string | null = null;
|
|
109
|
+
raffleId: string;
|
|
110
|
+
firstName: string;
|
|
111
|
+
lastName: string;
|
|
112
|
+
fullName: string | null = null;
|
|
113
|
+
email: string;
|
|
114
|
+
applicationDate: number;
|
|
115
|
+
phone: string | null = null;
|
|
116
|
+
isWinner: boolean | null = null;
|
|
117
|
+
|
|
118
|
+
extraData: Record<string, any> | null = null;
|
|
119
|
+
appliedProduct: IkasRaffleAppliedProduct;
|
|
120
|
+
|
|
121
|
+
constructor(data: Partial<IkasRaffleParticipant>) {
|
|
122
|
+
this.id = data.id || null;
|
|
123
|
+
this.createdAt = data.createdAt || Date.now();
|
|
124
|
+
this.updatedAt = data.updatedAt || Date.now();
|
|
125
|
+
this.deleted = data.deleted || false;
|
|
126
|
+
this.customerId = data.customerId || null;
|
|
127
|
+
this.raffleId = data.raffleId || "";
|
|
128
|
+
this.firstName = data.firstName || "";
|
|
129
|
+
this.lastName = data.lastName || "";
|
|
130
|
+
this.fullName = data.fullName || null;
|
|
131
|
+
this.email = data.email || "";
|
|
132
|
+
this.applicationDate = data.applicationDate || 0;
|
|
133
|
+
this.phone = data.phone || null;
|
|
134
|
+
this.isWinner = data.isWinner || null;
|
|
135
|
+
|
|
136
|
+
this.extraData = data.extraData || {};
|
|
137
|
+
this.appliedProduct = new IkasRaffleAppliedProduct(
|
|
138
|
+
data.appliedProduct || {}
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
makeAutoObservable(this);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export class IkasRaffleAppliedProduct implements IRaffleAppliedProduct {
|
|
146
|
+
productId: string;
|
|
147
|
+
variantId: string;
|
|
148
|
+
|
|
149
|
+
constructor(data: Partial<IkasRaffleAppliedProduct>) {
|
|
150
|
+
this.productId = data.productId || "";
|
|
151
|
+
this.variantId = data.variantId || "";
|
|
152
|
+
|
|
153
|
+
makeAutoObservable(this);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IkasSalesChannel as ISalesChannel,
|
|
3
|
+
IkasSalesChannelStockLocation as ISalesChannelStockLocation,
|
|
4
|
+
IkasSalesChannelPaymentGateway as ISalesChannelPaymentGateway,
|
|
5
|
+
} from "@ikas/storefront-models";
|
|
6
|
+
import { makeAutoObservable } from "mobx";
|
|
7
|
+
|
|
8
|
+
export class IkasSalesChannel implements ISalesChannel {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
priceListId: string | null = null;
|
|
12
|
+
stockLocations: IkasSalesChannelStockLocation[] | null = null;
|
|
13
|
+
paymentGateways: IkasSalesChannelPaymentGateway[] | null = null;
|
|
14
|
+
|
|
15
|
+
constructor(data: ISalesChannel) {
|
|
16
|
+
this.id = data.id;
|
|
17
|
+
this.name = data.name;
|
|
18
|
+
this.priceListId = data.priceListId || null;
|
|
19
|
+
this.stockLocations =
|
|
20
|
+
data.stockLocations?.map((s) => new IkasSalesChannelStockLocation(s)) ||
|
|
21
|
+
null;
|
|
22
|
+
this.paymentGateways =
|
|
23
|
+
data.paymentGateways?.map((p) => new IkasSalesChannelPaymentGateway(p)) ||
|
|
24
|
+
null;
|
|
25
|
+
|
|
26
|
+
makeAutoObservable(this);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class IkasSalesChannelStockLocation
|
|
31
|
+
implements ISalesChannelStockLocation
|
|
32
|
+
{
|
|
33
|
+
id: string;
|
|
34
|
+
order: number;
|
|
35
|
+
|
|
36
|
+
constructor(data: ISalesChannelStockLocation) {
|
|
37
|
+
this.id = data.id;
|
|
38
|
+
this.order = data.order;
|
|
39
|
+
|
|
40
|
+
makeAutoObservable(this);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export class IkasSalesChannelPaymentGateway
|
|
45
|
+
implements ISalesChannelPaymentGateway
|
|
46
|
+
{
|
|
47
|
+
id: string;
|
|
48
|
+
order: number;
|
|
49
|
+
|
|
50
|
+
constructor(data: ISalesChannelStockLocation) {
|
|
51
|
+
this.id = data.id;
|
|
52
|
+
this.order = data.order;
|
|
53
|
+
|
|
54
|
+
makeAutoObservable(this);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IkasBaseModel } from "../base";
|
|
2
|
+
import { IkasState as IState } from "@ikas/storefront-models";
|
|
3
|
+
import { makeAutoObservable } from "mobx";
|
|
4
|
+
|
|
5
|
+
export class IkasState extends IkasBaseModel implements IState {
|
|
6
|
+
countryId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
stateCode: string | null;
|
|
9
|
+
|
|
10
|
+
constructor(data: IState) {
|
|
11
|
+
super(data);
|
|
12
|
+
this.countryId = data.countryId;
|
|
13
|
+
this.name = data.name;
|
|
14
|
+
this.stateCode = data.stateCode;
|
|
15
|
+
|
|
16
|
+
makeAutoObservable(this);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IkasStockLocationAddressCity as IStockLocationAddressCity } from "@ikas/storefront-models";
|
|
2
|
+
import { makeAutoObservable } from "mobx";
|
|
3
|
+
|
|
4
|
+
export class IkasStockLocationAddressCity implements IStockLocationAddressCity {
|
|
5
|
+
code: string | null = null;
|
|
6
|
+
id: string | null = null;
|
|
7
|
+
name: string;
|
|
8
|
+
|
|
9
|
+
constructor(data: IStockLocationAddressCity) {
|
|
10
|
+
this.code = data.code;
|
|
11
|
+
this.id = data.id;
|
|
12
|
+
this.name = data.name;
|
|
13
|
+
|
|
14
|
+
makeAutoObservable(this);
|
|
15
|
+
}
|
|
16
|
+
}
|