@ikas/storefront 6.1.0-beta.342 → 6.1.0-beta.343
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e,__assign as n}from'./../../../ext/tslib/tslib.es6.js';import*as o from"react";import{reaction as r}from"mobx";import{listStorefrontPopup as i,SortByDirectionEnum as a}from"@ikas/storefront-api";import{IkasStorefrontConfig as u}from"@ikas/storefront-config";import{Analytics as s}from"../../../analytics/analytics.js";import"../../../analytics/head/index.js";import{IkasBaseStore as c}from"../../../store/base.js";import"../../../store/customer/index.js";import"../../../store/cart/index.js";import d from"../../../store/product/index.js";import{POPUP_CONTEXT_UPDATE_EVENT as l}from'./../../../ext/@ikas/popup-script-injector/dist/popup-script-injector.es.js';import{resolveStoreUrl as p,resolveCartUrl as f}from"./common.js";var m=["scroll","keydown","pointerdown","touchstart","mousemove"],v=function(n){return t(void 0,void 0,void 0,(function(){var o,r,i,a,l,m,v,I,S,y,P,C,k,b,E,L;return e(this,(function(j){switch(j.label){case 0:return o={popups:n,cartUrl:""},[4,function(){return new Promise((function(t){var e=setInterval((function(){var n=u.getSessionId();n&&(clearInterval(e),t(n))}),100)}))}()];case 1:return j.sent(),(r=u.getSessionId())&&(o.sessionId=r),(i=u.getCdnUrl())&&(o.cdnUrl=i),(a=null===(b=u.getMerchantSettings())||void 0===b?void 0:b.merchantId)&&(o.merchantId=a),(l=p())&&(o.storeUrl=l),(m=f())&&(o.cartUrl=m),(v=u.getCustomerToken())&&(o.customerToken=v),(I=u.getCurrentLocale())&&(o.locale=I),(S=null===(L=null===(E=u.getCurrentRouting())||void 0===E?void 0:E.countryCodes)||void 0===L?void 0:L[0])&&(o.countryCode=S),(y=u.getPriceListId())&&(o.priceListId=y),(P=u.getSalesChannelId())&&(o.salesChannelId=P),D=c.getInstance().customerStore.customer,(C=D?h(D):null)&&(o.customer=C),T=c.getInstance().cartStore.cart,(k=T?w(T):null)&&(o.cart=k),o.services=function(){var n=this,o=c.getInstance();return{searchProducts:function(o){return t(n,void 0,void 0,(function(){var t,n,r;return e(this,(function(e){switch(e.label){case 0:return[4,d.searchProducts(g(o))];case 1:return(null==(t=e.sent())?void 0:t.isSuccess)&&(null===(r=null===(n=t.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length)?[2,t.data.data]:[2,[]]}}))}))},addItemToCart:function(r){var i=r.product,a=r.variant,u=r.quantity;return t(n,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,o.cartStore.addItem(a,i,null!=u?u:1)];case 1:return[2,{success:!!(null==(t=e.sent())?void 0:t.success)}]}}))}))},saveCustomerFormData:function(r){return t(n,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,o.customerStore.saveCustomerFormData({email:r.email,firstName:r.firstName,lastName:r.lastName,birthDate:r.birthDate||null,phone:r.phone||"",storefrontPopupId:r.popupId,subscriptions:r.subscriptions})];case 1:return t.sent(),[2]}}))}))},getLastViewedProducts:function(){return t(n,void 0,void 0,(function(){var t;return e(this,(function(e){return"function"==typeof(t=o.customerStore).getLastViewedProducts?[2,t.getLastViewedProducts()]:[2,[]]}))}))},formatVariantSellPrice:function(t){return t.formattedSellPrice||""},formatVariantDiscountPrice:function(t){return t.formattedDiscountPrice||null},hasVariantDiscount:function(t){return!!t.hasDiscount},getVariantDiscountPercentage:function(t){var e=t.discountPercentage;return null==e?null:"number"==typeof e?e.toString():e},redirectToProduct:function(t){return!!t.url&&(window.location.href=t.url,!0)},viewPopup:function(t){s.viewStorefrontPopup(t)}}}(),[2,o]}var T,D}))}))};function g(t){var e,n,o,r,i,s=null===(e=t.order)||void 0===e?void 0:e.map((function(t){return{direction:"ASC"===t.direction?a.ASC:a.DESC,type:t.type}}));return{input:{page:null!==(n=t.page)&&void 0!==n?n:1,perPage:null!==(o=t.perPage)&&void 0!==o?o:10,order:s,productIdList:t.productIdList,categoryIdList:t.categoryIdList,priceListId:null!==(r=t.priceListId)&&void 0!==r?r:u.getPriceListId(),salesChannelId:null!==(i=t.salesChannelId)&&void 0!==i?i:u.getSalesChannelId()}}}function h(t){return{email:t.email,firstName:t.firstName,lastName:t.lastName,birthDate:t.birthDate,phone:t.phone,gender:t.gender?String(t.gender):null,customerGroupIds:t.customerGroupIds||[],customerSegmentIds:t.customerSegmentIds||[],subscriptionStatus:t.subscriptionStatus?String(t.subscriptionStatus):null}}function w(t){var e,n,o=[],r=new Set,i=new Set,a=new Set,u=new Set,s=new Set,c=new Set;return t.items.forEach((function(t){var e,n,s,d=t.variant,l=(null==d?void 0:d.productId)||null,p=(null==d?void 0:d.id)||null,f=(null===(e=null==d?void 0:d.brand)||void 0===e?void 0:e.id)||null,m=(null===(n=null==d?void 0:d.categories)||void 0===n?void 0:n.map((function(t){return t.id})).filter(Boolean))||[];o.push({productId:l,variantId:p,brandId:f,categoryIds:m,quantity:t.quantity,finalPrice:t.finalPrice}),l&&r.add(l),p&&i.add(p),f&&a.add(f),m.forEach((function(t){return t&&u.add(t)})),(null===(s=t.discount)||void 0===s?void 0:s.campaignOfferId)&&c.add(t.discount.campaignOfferId)})),null===(e=t.campaignOffers)||void 0===e||e.forEach((function(t){t.campaignOfferId&&c.add(t.campaignOfferId)})),null===(n=t.orderAdjustments)||void 0===n||n.forEach((function(t){t.campaignId&&s.add(t.campaignId)})),{totalPrice:t.totalPrice,totalFinalPrice:t.totalFinalPrice,itemCount:t.itemCount,itemQuantity:t.itemQuantity,currencyCode:t.currencyCode||null,lines:o,productIds:Array.from(r),variantIds:Array.from(i),brandIds:Array.from(a),categoryIds:Array.from(u),appliedCampaignIds:Array.from(s),appliedCampaignOfferIds:Array.from(c),couponCode:t.couponCode||null}}function I(t){"undefined"!=typeof window&&(window.ikasPopupConfig&&(void 0!==t.customer&&(window.ikasPopupConfig.customer=t.customer),void 0!==t.cart&&(window.ikasPopupConfig.cart=t.cart),void 0!==t.customerToken&&(window.ikasPopupConfig.customerToken=t.customerToken||void 0)),"function"!=typeof window.updateIkasPopupContext?window.dispatchEvent(new CustomEvent(l,{detail:t})):window.updateIkasPopupContext(t))}function S(a){var s=this;a.router;var d=a.pageSpecificDataId,l=a.pageType;o.useEffect((function(){if("undefined"!=typeof window&&"undefined"!=typeof document){var o,a,d=!1,l=[],p=function(t,e){if(function(t){t.setAttribute("data-ikas-popup-widget","true"),!t.dataset.ikasPopupWidgetUrl&&t.src&&(t.dataset.ikasPopupWidgetUrl=t.src)}(t),"true"===t.dataset.ikasPopupWidgetLoaded)return e(),function(){};var n=function(){t.dataset.ikasPopupWidgetLoaded="true",e()},o=function(e){console.error("[@ikas/storefront] Failed to load popup widget script",t.src,e)};return t.addEventListener("load",n,{once:!0}),t.addEventListener("error",o,{once:!0}),function(){t.removeEventListener("load",n),t.removeEventListener("error",o)}},f=function(t){var e=window.location.href.includes("http://localhost:3333/")?"http://localhost:9000/popup-script-injector.iife.js":"/sf/assets/popup/popup-script-injector.iife.js";if(e){var n=function(){d||function(t){if("function"==typeof window.startIkasPopupWidget)try{window.startIkasPopupWidget(t)}catch(t){console.error("[@ikas/storefront] Failed to start popup widget",t)}}(t)},r=document.querySelector('script[data-ikas-popup-widget="true"]');if(r)o=p(r,n);else{var i=document.createElement("script");i.src=e,i.defer=!0,o=p(i,n),document.body.appendChild(i)}}},g=function(t){var e=window.location.href.includes("http://localhost:3333/")?"http://localhost:9000/style.css":"/sf/assets/popup/style.css";if(e&&!document.querySelector('link[href="'.concat(e,'"]'))){var n=document.createElement("link");n.rel="stylesheet",n.href=e,n.setAttribute("data-ikas-popup-widget","true");n.addEventListener("error",(function(t){console.error("[@ikas/storefront] Failed to load popup widget CSS",e,t)}),{once:!0}),document.head.appendChild(n)}};return t(s,void 0,void 0,(function(){var o,p,S;return e(this,(function(y){switch(y.label){case 0:return(o=u.getStorefrontPopups()||[]).length?[4,(F=o,t(s,void 0,void 0,(function(){var t,o,r,a,u;return e(this,(function(e){switch(e.label){case 0:if(!(t=F.map((function(t){return t.id})).filter(Boolean)).length)return[2,F];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,i({idList:t})];case 2:return(null==(o=e.sent())?void 0:o.isSuccess)&&(null===(u=o.data)||void 0===u?void 0:u.length)?(r=o.data,[2,F.map((function(t){var e=r.find((function(e){return e.id===t.id}));return e?n(n({},e),{isFilteredOnServerSide:t.isFilteredOnServerSide}):t}))]):[3,4];case 3:return a=e.sent(),console.error("[@ikas/storefront] Failed to fetch popup details",a),[3,4];case 4:return[2,F]}}))})))]:[2];case 1:return p=y.sent(),d?[2]:[4,v(p)];case 2:return S=y.sent(),window.ikasPopupConfig=S,b=function(){d||(f(S),g())},j=window,T=!1,D=function(){m.forEach((function(t){return window.removeEventListener(t,A)})),void 0!==E&&"function"==typeof j.cancelIdleCallback&&j.cancelIdleCallback(E),void 0!==L&&window.clearTimeout(L)},A=function(){T||(T=!0,D(),b())},m.forEach((function(t){return window.addEventListener(t,A,{once:!0,passive:!0})})),"function"==typeof j.requestIdleCallback?E=j.requestIdleCallback(A,{timeout:3e3}):L=window.setTimeout(A,1500),a=D,P=c.getInstance(),C=r((function(){var t=P.customerStore.customer;return t?{email:t.email,gender:t.gender,groupIds:(t.customerGroupIds||[]).join(","),segmentIds:(t.customerSegmentIds||[]).join(","),subscriptionStatus:t.subscriptionStatus}:null}),(function(){var t=P.customerStore.customer;I({customer:t?h(t):null,customerToken:u.getCustomerToken()||null})})),k=r((function(){var t=P.cartStore.cart;return t?{total:t.totalFinalPrice,itemCount:t.itemCount,quantity:t.itemQuantity,productSignature:t.items.map((function(t){var e,n;return"".concat((null===(e=t.variant)||void 0===e?void 0:e.productId)||"",":").concat((null===(n=t.variant)||void 0===n?void 0:n.id)||"",":").concat(t.quantity)})).join("|"),campaignSignature:(t.orderAdjustments||[]).map((function(t){return t.campaignId||""})).join("|"),couponCode:t.couponCode}:null}),(function(){var t=P.cartStore.cart;I({cart:t?w(t):null})})),l.push(C,k),[2]}var P,C,k,b,E,L,j,T,D,A,F}))})),function(){d=!0,null==o||o(),null==a||a(),l.forEach((function(t){return t()})),l=[],"function"==typeof window.destroyIkasPopupWidget&&window.destroyIkasPopupWidget()}}}),[d,l])}export{S as usePopupWidget};
|
|
1
|
+
import{__awaiter as t,__generator as e,__assign as n}from'./../../../ext/tslib/tslib.es6.js';import*as o from"react";import{reaction as r}from"mobx";import{listStorefrontPopup as i,SortByDirectionEnum as a}from"@ikas/storefront-api";import{IkasStorefrontConfig as u}from"@ikas/storefront-config";import{Analytics as s}from"../../../analytics/analytics.js";import"../../../analytics/head/index.js";import{IkasBaseStore as c}from"../../../store/base.js";import"../../../store/customer/index.js";import"../../../store/cart/index.js";import d from"../../../store/product/index.js";import{resolveStoreUrl as l,resolveCartUrl as p}from"./common.js";var f=["scroll","keydown","pointerdown","touchstart","mousemove"],m=function(n){return t(void 0,void 0,void 0,(function(){var o,r,i,a,f,m,w,I,S,y,C,P,k,b,L,E;return e(this,(function(j){switch(j.label){case 0:return o={popups:n,cartUrl:""},[4,function(){return new Promise((function(t){var e=setInterval((function(){var n=u.getSessionId();n&&(clearInterval(e),t(n))}),100)}))}()];case 1:return j.sent(),(r=u.getSessionId())&&(o.sessionId=r),(i=u.getCdnUrl())&&(o.cdnUrl=i),(a=null===(b=u.getMerchantSettings())||void 0===b?void 0:b.merchantId)&&(o.merchantId=a),(f=l())&&(o.storeUrl=f),(m=p())&&(o.cartUrl=m),(w=u.getCustomerToken())&&(o.customerToken=w),(I=u.getCurrentLocale())&&(o.locale=I),(S=null===(E=null===(L=u.getCurrentRouting())||void 0===L?void 0:L.countryCodes)||void 0===E?void 0:E[0])&&(o.countryCode=S),(y=u.getPriceListId())&&(o.priceListId=y),(C=u.getSalesChannelId())&&(o.salesChannelId=C),A=c.getInstance().customerStore.customer,(P=A?g(A):null)&&(o.customer=P),D=c.getInstance().cartStore.cart,(k=D?h(D):null)&&(o.cart=k),o.services=function(){var n=this,o=c.getInstance();return{searchProducts:function(o){return t(n,void 0,void 0,(function(){var t,n,r;return e(this,(function(e){switch(e.label){case 0:return[4,d.searchProducts(v(o))];case 1:return(null==(t=e.sent())?void 0:t.isSuccess)&&(null===(r=null===(n=t.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length)?[2,t.data.data]:[2,[]]}}))}))},addItemToCart:function(r){var i=r.product,a=r.variant,u=r.quantity;return t(n,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,o.cartStore.addItem(a,i,null!=u?u:1)];case 1:return[2,{success:!!(null==(t=e.sent())?void 0:t.success)}]}}))}))},saveCustomerFormData:function(r){return t(n,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,o.customerStore.saveCustomerFormData({email:r.email,firstName:r.firstName,lastName:r.lastName,birthDate:r.birthDate||null,phone:r.phone||"",storefrontPopupId:r.popupId,subscriptions:r.subscriptions})];case 1:return t.sent(),[2]}}))}))},getLastViewedProducts:function(){return t(n,void 0,void 0,(function(){var t;return e(this,(function(e){return"function"==typeof(t=o.customerStore).getLastViewedProducts?[2,t.getLastViewedProducts()]:[2,[]]}))}))},formatVariantSellPrice:function(t){return t.formattedSellPrice||""},formatVariantDiscountPrice:function(t){return t.formattedDiscountPrice||null},hasVariantDiscount:function(t){return!!t.hasDiscount},getVariantDiscountPercentage:function(t){var e=t.discountPercentage;return null==e?null:"number"==typeof e?e.toString():e},redirectToProduct:function(t){return!!t.url&&(window.location.href=t.url,!0)},viewPopup:function(t){s.viewStorefrontPopup(t)}}}(),[2,o]}var D,A}))}))};function v(t){var e,n,o,r,i,s=null===(e=t.order)||void 0===e?void 0:e.map((function(t){return{direction:"ASC"===t.direction?a.ASC:a.DESC,type:t.type}}));return{input:{page:null!==(n=t.page)&&void 0!==n?n:1,perPage:null!==(o=t.perPage)&&void 0!==o?o:10,order:s,productIdList:t.productIdList,categoryIdList:t.categoryIdList,priceListId:null!==(r=t.priceListId)&&void 0!==r?r:u.getPriceListId(),salesChannelId:null!==(i=t.salesChannelId)&&void 0!==i?i:u.getSalesChannelId()}}}function g(t){return{email:t.email,firstName:t.firstName,lastName:t.lastName,birthDate:t.birthDate,phone:t.phone,gender:t.gender?String(t.gender):null,customerGroupIds:t.customerGroupIds||[],customerSegmentIds:t.customerSegmentIds||[],subscriptionStatus:t.subscriptionStatus?String(t.subscriptionStatus):null}}function h(t){var e,n,o=[],r=new Set,i=new Set,a=new Set,u=new Set,s=new Set,c=new Set;return t.items.forEach((function(t){var e,n,s,d=t.variant,l=(null==d?void 0:d.productId)||null,p=(null==d?void 0:d.id)||null,f=(null===(e=null==d?void 0:d.brand)||void 0===e?void 0:e.id)||null,m=(null===(n=null==d?void 0:d.categories)||void 0===n?void 0:n.map((function(t){return t.id})).filter(Boolean))||[];o.push({productId:l,variantId:p,brandId:f,categoryIds:m,quantity:t.quantity,finalPrice:t.finalPrice}),l&&r.add(l),p&&i.add(p),f&&a.add(f),m.forEach((function(t){return t&&u.add(t)})),(null===(s=t.discount)||void 0===s?void 0:s.campaignOfferId)&&c.add(t.discount.campaignOfferId)})),null===(e=t.campaignOffers)||void 0===e||e.forEach((function(t){t.campaignOfferId&&c.add(t.campaignOfferId)})),null===(n=t.orderAdjustments)||void 0===n||n.forEach((function(t){t.campaignId&&s.add(t.campaignId)})),{totalPrice:t.totalPrice,totalFinalPrice:t.totalFinalPrice,itemCount:t.itemCount,itemQuantity:t.itemQuantity,currencyCode:t.currencyCode||null,lines:o,productIds:Array.from(r),variantIds:Array.from(i),brandIds:Array.from(a),categoryIds:Array.from(u),appliedCampaignIds:Array.from(s),appliedCampaignOfferIds:Array.from(c),couponCode:t.couponCode||null}}function w(t){"undefined"!=typeof window&&(window.ikasPopupConfig&&(void 0!==t.customer&&(window.ikasPopupConfig.customer=t.customer),void 0!==t.cart&&(window.ikasPopupConfig.cart=t.cart),void 0!==t.customerToken&&(window.ikasPopupConfig.customerToken=t.customerToken||void 0)),"function"!=typeof window.updateIkasPopupContext?window.dispatchEvent(new CustomEvent("ikas:popup-context-update",{detail:t})):window.updateIkasPopupContext(t))}function I(a){var s=this;a.router;var d=a.pageSpecificDataId,l=a.pageType;o.useEffect((function(){if("undefined"!=typeof window&&"undefined"!=typeof document){var o,a,d=!1,l=[],p=function(t,e){if(function(t){t.setAttribute("data-ikas-popup-widget","true"),!t.dataset.ikasPopupWidgetUrl&&t.src&&(t.dataset.ikasPopupWidgetUrl=t.src)}(t),"true"===t.dataset.ikasPopupWidgetLoaded)return e(),function(){};var n=function(){t.dataset.ikasPopupWidgetLoaded="true",e()},o=function(e){console.error("[@ikas/storefront] Failed to load popup widget script",t.src,e)};return t.addEventListener("load",n,{once:!0}),t.addEventListener("error",o,{once:!0}),function(){t.removeEventListener("load",n),t.removeEventListener("error",o)}},v=function(t){var e=window.location.href.includes("http://localhost:3333/")?"http://localhost:9000/popup-script-injector.iife.js":"/sf/assets/popup/popup-script-injector.iife.js";if(e){var n=function(){d||function(t){if("function"==typeof window.startIkasPopupWidget)try{window.startIkasPopupWidget(t)}catch(t){console.error("[@ikas/storefront] Failed to start popup widget",t)}}(t)},r=document.querySelector('script[data-ikas-popup-widget="true"]');if(r)o=p(r,n);else{var i=document.createElement("script");i.src=e,i.defer=!0,o=p(i,n),document.body.appendChild(i)}}},I=function(t){var e=window.location.href.includes("http://localhost:3333/")?"http://localhost:9000/style.css":"/sf/assets/popup/style.css";if(e&&!document.querySelector('link[href="'.concat(e,'"]'))){var n=document.createElement("link");n.rel="stylesheet",n.href=e,n.setAttribute("data-ikas-popup-widget","true");n.addEventListener("error",(function(t){console.error("[@ikas/storefront] Failed to load popup widget CSS",e,t)}),{once:!0}),document.head.appendChild(n)}};return t(s,void 0,void 0,(function(){var o,p,S;return e(this,(function(y){switch(y.label){case 0:return(o=u.getStorefrontPopups()||[]).length?[4,(F=o,t(s,void 0,void 0,(function(){var t,o,r,a,u;return e(this,(function(e){switch(e.label){case 0:if(!(t=F.map((function(t){return t.id})).filter(Boolean)).length)return[2,F];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,i({idList:t})];case 2:return(null==(o=e.sent())?void 0:o.isSuccess)&&(null===(u=o.data)||void 0===u?void 0:u.length)?(r=o.data,[2,F.map((function(t){var e=r.find((function(e){return e.id===t.id}));return e?n(n({},e),{isFilteredOnServerSide:t.isFilteredOnServerSide}):t}))]):[3,4];case 3:return a=e.sent(),console.error("[@ikas/storefront] Failed to fetch popup details",a),[3,4];case 4:return[2,F]}}))})))]:[2];case 1:return p=y.sent(),d?[2]:[4,m(p)];case 2:return S=y.sent(),window.ikasPopupConfig=S,b=function(){d||(v(S),I())},j=window,D=!1,A=function(){f.forEach((function(t){return window.removeEventListener(t,T)})),void 0!==L&&"function"==typeof j.cancelIdleCallback&&j.cancelIdleCallback(L),void 0!==E&&window.clearTimeout(E)},T=function(){D||(D=!0,A(),b())},f.forEach((function(t){return window.addEventListener(t,T,{once:!0,passive:!0})})),"function"==typeof j.requestIdleCallback?L=j.requestIdleCallback(T,{timeout:3e3}):E=window.setTimeout(T,1500),a=A,C=c.getInstance(),P=r((function(){var t=C.customerStore.customer;return t?{email:t.email,gender:t.gender,groupIds:(t.customerGroupIds||[]).join(","),segmentIds:(t.customerSegmentIds||[]).join(","),subscriptionStatus:t.subscriptionStatus}:null}),(function(){var t=C.customerStore.customer;w({customer:t?g(t):null,customerToken:u.getCustomerToken()||null})})),k=r((function(){var t=C.cartStore.cart;return t?{total:t.totalFinalPrice,itemCount:t.itemCount,quantity:t.itemQuantity,productSignature:t.items.map((function(t){var e,n;return"".concat((null===(e=t.variant)||void 0===e?void 0:e.productId)||"",":").concat((null===(n=t.variant)||void 0===n?void 0:n.id)||"",":").concat(t.quantity)})).join("|"),campaignSignature:(t.orderAdjustments||[]).map((function(t){return t.campaignId||""})).join("|"),couponCode:t.couponCode}:null}),(function(){var t=C.cartStore.cart;w({cart:t?h(t):null})})),l.push(P,k),[2]}var C,P,k,b,L,E,j,D,A,T,F}))})),function(){d=!0,null==o||o(),null==a||a(),l.forEach((function(t){return t()})),l=[],"function"==typeof window.destroyIkasPopupWidget&&window.destroyIkasPopupWidget()}}}),[d,l])}export{I as usePopupWidget};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront",
|
|
3
|
-
"version": "6.1.0-beta.
|
|
3
|
+
"version": "6.1.0-beta.343",
|
|
4
4
|
"description": "Storefront functionality for ikas storefront themes.",
|
|
5
5
|
"author": "ikas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"swiper": "11.0.6"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@ikas/storefront-api": "^6.1.0-beta.
|
|
27
|
-
"@ikas/storefront-config": "^6.1.0-beta.
|
|
28
|
-
"@ikas/storefront-model-functions": "^6.1.0-beta.
|
|
29
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
30
|
-
"@ikas/storefront-providers": "^6.1.0-beta.
|
|
26
|
+
"@ikas/storefront-api": "^6.1.0-beta.343",
|
|
27
|
+
"@ikas/storefront-config": "^6.1.0-beta.343",
|
|
28
|
+
"@ikas/storefront-model-functions": "^6.1.0-beta.343",
|
|
29
|
+
"@ikas/storefront-models": "^6.1.0-beta.343",
|
|
30
|
+
"@ikas/storefront-providers": "^6.1.0-beta.343",
|
|
31
31
|
"@ikas/localized-address": "1.0.0-beta.6",
|
|
32
32
|
"@adyen/adyen-web": "^5.57.0",
|
|
33
33
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@ikas/localized-address": "1.0.0-beta.6",
|
|
65
|
-
"@ikas/storefront-api": "^6.1.0-beta.
|
|
66
|
-
"@ikas/storefront-config": "^6.1.0-beta.
|
|
67
|
-
"@ikas/storefront-model-functions": "^6.1.0-beta.
|
|
68
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
69
|
-
"@ikas/storefront-providers": "^6.1.0-beta.
|
|
65
|
+
"@ikas/storefront-api": "^6.1.0-beta.343",
|
|
66
|
+
"@ikas/storefront-config": "^6.1.0-beta.343",
|
|
67
|
+
"@ikas/storefront-model-functions": "^6.1.0-beta.343",
|
|
68
|
+
"@ikas/storefront-models": "^6.1.0-beta.343",
|
|
69
|
+
"@ikas/storefront-providers": "^6.1.0-beta.343",
|
|
70
70
|
"mobx": "^6.1.3",
|
|
71
71
|
"mobx-react-lite": "^3.1.5",
|
|
72
72
|
"next": "12.2.0",
|