@ikas/storefront 6.1.0-beta.201 → 6.1.0-beta.202
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/build/components/page/index.d.ts +1 -7
- package/build/components/page/index.js +1 -1
- package/build/components/page/widgets/common.d.ts +2 -0
- package/build/components/page/widgets/common.js +1 -0
- package/build/components/page/widgets/loyaltyWidget.d.ts +8 -0
- package/build/components/page/widgets/loyaltyWidget.js +1 -0
- package/build/components/page/widgets/popupWidget.d.ts +13 -0
- package/build/components/page/widgets/popupWidget.js +1 -0
- package/build/store/customer/api.d.ts +2 -2
- package/package.json +12 -11
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { IkasPageComponentPropValue, IkasSimplePageComponentPropValue } from "@ikas/storefront-providers";
|
|
3
3
|
import { IkasCustomerReviewSummary, IkasThemeJsonPageType, IkasThemeJsonSettings, IkasThemeJsonCustomData } from "../../models";
|
|
4
|
-
import { IkasThemeJsonComponent } from "@ikas/storefront-models";
|
|
5
|
-
declare global {
|
|
6
|
-
interface Window {
|
|
7
|
-
ikasPopupConfig?: any;
|
|
8
|
-
startIkasPopupWidget?: (config?: any) => void;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
4
|
+
import type { IkasThemeJsonComponent } from "@ikas/storefront-models";
|
|
11
5
|
export declare type IkasPageProps = {
|
|
12
6
|
propValues: IkasSimplePageComponentPropValue[];
|
|
13
7
|
themeJsonComponents: IkasThemeJsonComponent[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t,__spreadArray as e,__awaiter as o,__generator as r}from'./../../ext/tslib/tslib.es6.js';import*as i from"react";import{observer as n}from"mobx-react-lite";import{useRouter as a}from"next/router.js";import"../../models/data/blog/category/index.js";import"../../models/data/blog/content/index.js";import"../../models/data/blog/meta-data/index.js";import"../../models/data/blog/tag/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import{IkasThemeJsonPageType as s}from"@ikas/storefront-models";import"mobx";import"../../models/data/campaign-offer/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/path-item/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/checkout-settings/index.js";import"../../models/data/city/index.js";import"../../models/data/country/index.js";import"../../models/data/customer/address/region/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/address/ikas-localized-customer-address.js";import"../../models/data/customer/attribute/index.js";import"../../models/data/customer/review/summary/index.js";import"../../models/data/customer/review/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-form-data-input/index.js";import"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/filter-category/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import{IkasMerchantSettings as d}from"../../models/data/merchant-settings/index.js";import"../../models/data/order/address/region/index.js";import"../../models/data/order/address/index.js";import"../../models/data/order/line-item/option/value/index.js";import"../../models/data/order/line-item/variant/value/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/order-transaction-with-prices/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/transaction/index.js";import"../../models/data/order/index.js";import"../../models/data/payment-gateway/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/filter/index.js";import"../../models/data/product/campaign-offer/index.js";import"../../models/data/product/option-set/option/index.js";import"../../models/data/product/option-set/index.js";import"../../models/data/product/stock-location/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/index.js";import"../../models/data/raffle/index.js";import"../../models/data/shipping-zone/state/city/district/region/index.js";import"../../models/data/state/index.js";import"../../models/data/storefront-popup/storefront-popup-display-filter/index.js";import"../../models/data/storefront-popup/storefront-popup-display-settings/index.js";import"../../models/data/storefront-popup/storefront-popup-page-filter/index.js";import"../../models/data/storefront-popup/index.js";import"../../models/data/theme-json/index.js";import"../../models/data/theme-json/component/index.js";import{IkasThemeJsonCustomData as u}from"../../models/data/theme-json/custom-data/index.js";import"../../models/data/variant-type/variant-value/index.js";import"@ikas/localized-address";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/ikas-address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{IkasStorefrontConfig as c}from"@ikas/storefront-config";import{Analytics as l}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import{IkasPageHead as m}from"./head.js";import{ThemeComponent as p}from"./ThemeComponent.js";import{IkasBaseStore as f}from"../../store/base.js";import"../../store/customer/index.js";import"../../store/cart/index.js";import{initIkasEvents as v}from"../../analytics/events.js";import{IkasPageDataInit as g}from"../../page-data-init/index.js";import{setAPIClientConfig as j,listStorefrontPopup as h,SortByDirectionEnum as x}from"@ikas/storefront-api";import w from"../../store/product/index.js";var y=function(t){return o(void 0,void 0,void 0,(function(){var e,i,n,a,s,d,u,l,m,p,v,g,j,h,x;return r(this,(function(y){switch(y.label){case 0:return e={popups:t,cartUrl:""},[4,function(){return new Promise((function(t){var e=setInterval((function(){var o=c.getSessionId();o&&(clearInterval(e),t(o))}),100)}))}()];case 1:return y.sent(),(i=c.getSessionId())&&(e.sessionId=i),(n=c.getCdnUrl())&&(e.cdnUrl=n),(a=null===(j=c.getMerchantSettings())||void 0===j?void 0:j.merchantId)&&(e.merchantId=a),C=c.getDomain(),P=c.getCurrentRouting(),(s="undefined"!=typeof window?window.location.origin+(P?"/".concat(null==P?void 0:P.path):""):(null==C?void 0:C.startsWith("http"))?C:"https://".concat(C))&&(e.storeUrl=s),d=function(){var t=c.getCurrentRouting();if(t)return"".concat((null==t?void 0:t.path)?"/".concat(t.path):"","/cart")}(),d&&(e.cartUrl=d),(u=c.getCustomerToken())&&(e.customerToken=u),(l=c.getCurrentLocale())&&(e.locale=l),(m=null===(x=null===(h=c.getCurrentRouting())||void 0===h?void 0:h.countryCodes)||void 0===x?void 0:x[0])&&(e.countryCode=m),(p=c.getPriceListId())&&(e.priceListId=p),(v=c.getSalesChannelId())&&(e.salesChannelId=v),S=f.getInstance().customerStore.customer,(g=S?{email:S.email,firstName:S.firstName,lastName:S.lastName,birthDate:S.birthDate,phone:S.phone}:null)&&(e.customer=g),e.services=function(){var t=this,e=f.getInstance();return{searchProducts:function(e){return o(t,void 0,void 0,(function(){var t,o,i;return r(this,(function(r){switch(r.label){case 0:return[4,w.searchProducts(b(e))];case 1:return(null==(t=r.sent())?void 0:t.isSuccess)&&(null===(i=null===(o=t.data)||void 0===o?void 0:o.data)||void 0===i?void 0:i.length)?[2,t.data.data]:[2,[]]}}))}))},addItemToCart:function(i){var n=i.product,a=i.variant,s=i.quantity;return o(t,void 0,void 0,(function(){var t;return r(this,(function(o){switch(o.label){case 0:return[4,e.cartStore.addItem(a,n,null!=s?s:1)];case 1:return[2,{success:!!(null==(t=o.sent())?void 0:t.success)}]}}))}))},saveCustomerFormData:function(i){return o(t,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,e.customerStore.saveCustomerFormData({email:i.email,firstName:i.firstName,lastName:i.lastName,birthDate:i.birthDate||"",phone:i.phone||"",storefrontPopupId:i.popupId,subscriptions:i.subscriptions})];case 1:return t.sent(),[2]}}))}))},getLastViewedProducts:function(){return o(t,void 0,void 0,(function(){var t;return r(this,(function(o){return"function"==typeof(t=e.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)}}}(),[2,e]}var S,C,P}))}))},S=n((function(n){var p=n.propValues,x=n.themeJsonComponents,w=n.customDataList,S=n.pageType,b=n.pageTitle,P=n.pageDescription,I=n.pageSpecificData,k=n.canonicals,D=n.disableIndex,L=n.settings,E=n.configJson,T=n.reInitOnBrowser,V=n.addOgpMetas,R=n.components,F=n.productReviewSummary,U=a(),A=i.useState(),M=A[0],N=A[1];c.init(t(t({},E),{currentPageComponents:R,loginRequiredCallback:function(){U.push("/account/login")}})),f.getInstance().router=U,j();var O=f.getInstance();O.router=U,O.currentPageType=S;var W=i.useState(!1),B=W[0],z=W[1],q=i.useMemo((function(){return(null==M?void 0:M.id)===(null==I?void 0:I.id)&&g.pageSpecificData&&g.isBrowser?S===s.PRODUCT&&g._initProductOnBrowser(g.pageSpecificData):g.setPageSpecificData(I,S,B),g.initPagePropValues(p,x,w.map((function(t){return new u(t)})),L,B)}),e(e([],S!==s.SEARCH?[B]:[],!0),[p,S,L,I,x],!1));i.useEffect((function(){T&&z("undefined"!=typeof window),window.addToCart=O.cartStore._windowAddToCart,O.cartStore.getCart(),O.checkLocalization(),v()}),[]),i.useEffect((function(){I?(null==M?void 0:M.id)!==I.id&&N(I):N(null)}),[I]),i.useEffect((function(){var t=function(){O.customerStore.routeChangeInit()};return U.events.on("routeChangeStart",t),function(){U.events.off("routeChangeStart",t)}}),[]),i.useEffect((function(){!function(t,e){var i,n;o(this,void 0,void 0,(function(){var o,a,d,u,c,m;return r(this,(function(r){switch(r.label){case 0:return o=f.getInstance(),[4,l.pageView(t)];case 1:r.sent(),r.label=2;case 2:return r.trys.push([2,7,,8]),t!==s.PRODUCT?[3,4]:(a=e,[4,l.productView(a)]);case 3:r.sent(),o.customerStore.onProductView(a.id,a.selectedVariant.id),r.label=4;case 4:return t===s.CATEGORY&&(u=null===(i=(d=e).categoryPathItems)||void 0===i?void 0:i.map((function(t){return t.name})).join(" > "),u=d.categoryPathItems&&(null===(n=d.categoryPathItems)||void 0===n?void 0:n.length)>0?u+" > "+d.name:d.name,l.viewCategory(u,d)),t===s.BRAND&&(c=e,l.viewBrand(c)),t!==s.CART?[3,6]:[4,o.cartStore.waitUntilInitialized()];case 5:r.sent(),l.viewCart(o.cartStore.cart),r.label=6;case 6:return[3,8];case 7:return m=r.sent(),console.error(m),[3,8];case 8:return[2]}}))}))}(S,g.pageSpecificData)}),[S,I]),i.useEffect((function(){if("undefined"!=typeof window&&"undefined"!=typeof document){var e,i=!1,n=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 o=function(){t.dataset.ikasPopupWidgetLoaded="true",e()},r=function(e){console.error("[@ikas/storefront] Failed to load popup widget script",t.src,e)};return t.addEventListener("load",o,{once:!0}),t.addEventListener("error",r,{once:!0}),function(){t.removeEventListener("load",o),t.removeEventListener("error",r)}},a=function(t){var o=window.location.href.includes("http://localhost:3333/")?"http://localhost:9000/popup-script-injector.iife.js":"/sf/assets/popup/popup-script-injector.iife.js";if(o){var r=function(){i||function(t){if("function"==typeof window.startIkasPopupWidget)try{window.startIkasPopupWidget(t)}catch(t){console.error("[@ikas/storefront] Failed to start popup widget",t)}}(t)},a=document.querySelector('script[data-ikas-popup-widget="true"]');if(a)e=n(a,r);else{var s=document.createElement("script");s.src=o,s.defer=!0,e=n(s,r),document.body.appendChild(s)}}},s=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 o=document.createElement("link");o.rel="stylesheet",o.href=e,o.setAttribute("data-ikas-popup-widget","true");o.addEventListener("load",(function(){}),{once:!0}),o.addEventListener("error",(function(t){console.error("[@ikas/storefront] Failed to load popup widget CSS",e,t)}),{once:!0}),document.head.appendChild(o)}};return o(void 0,void 0,void 0,(function(){var e,n,d;return r(this,(function(u){switch(u.label){case 0:return e=c.getStorefrontPopups()||[],[4,(l=e,o(void 0,void 0,void 0,(function(){var e,o,i,n,a;return r(this,(function(r){switch(r.label){case 0:if(!(e=l.map((function(t){return t.id})).filter(Boolean)).length)return[2,l];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,h({idList:e})];case 2:return(null==(o=r.sent())?void 0:o.isSuccess)&&(null===(a=o.data)||void 0===a?void 0:a.length)?(i=o.data,[2,l.map((function(e){var o=i.find((function(t){return t.id===e.id}));return o?t(t({},o),{isFilteredOnServerSide:e.isFilteredOnServerSide}):e}))]):[3,4];case 3:return n=r.sent(),console.error("[@ikas/storefront] Failed to fetch popup details",n),[3,4];case 4:return[2,l]}}))})))];case 1:return n=u.sent(),i?[2]:[4,y(n)];case 2:return d=u.sent(),window.ikasPopupConfig=d,a(d),s(),[2]}var l}))})),function(){i=!0,null==e||e()}}}),[U.asPath,S,null==I?void 0:I.id]);var H=i.useMemo((function(){var t=q.find((function(t){return t.component.isHeader})),e=q.find((function(t){return t.component.isFooter})),o=q.filter((function(t){return!t.component.isHeader&&!t.component.isFooter}))||[];return i.createElement("div",{style:{position:"relative",minHeight:"100vh",display:"flex",flexDirection:"column",justifyContent:"space-between"}},i.createElement("div",null,t&&C(t,L,-1),o.map((function(t,e){return C(t,L,e)}))),e&&C(e,L,-1))}),[q,L]),_=i.useMemo((function(){return c.getMerchantSettings()?new d(c.getMerchantSettings()):null}),[c.getMerchantSettings()]);return i.createElement(i.Fragment,null,i.createElement(m,{pageType:S,pageTitle:b,pageDescription:P,pageSpecificData:g.pageSpecificData,canonicals:k&&k.length>0?k:null,disableIndex:D,merchantSettings:_,addOgpMetas:V,productReviewSummary:F,pageComponentPropValues:q}),H)})),C=function(t,e,o){return i.createElement(p,{key:t.pageComponent.id,index:o,pageComponentPropValue:t,settings:e})};function b(t){var e,o,r,i,n,a=null===(e=t.order)||void 0===e?void 0:e.map((function(t){return{direction:"ASC"===t.direction?x.ASC:x.DESC,type:t.type}}));return{input:{page:null!==(o=t.page)&&void 0!==o?o:1,perPage:null!==(r=t.perPage)&&void 0!==r?r:10,order:a,productIdList:t.productIdList,categoryIdList:t.categoryIdList,priceListId:null!==(i=t.priceListId)&&void 0!==i?i:c.getPriceListId(),salesChannelId:null!==(n=t.salesChannelId)&&void 0!==n?n:c.getSalesChannelId()}}}export{S as IkasPage,C as renderComponent};
|
|
1
|
+
import{__assign as e,__spreadArray as t,__awaiter as o,__generator as i}from'./../../ext/tslib/tslib.es6.js';import*as r from"react";import{observer as a}from"mobx-react-lite";import{useRouter as s}from"next/router.js";import"../../models/data/blog/category/index.js";import"../../models/data/blog/content/index.js";import"../../models/data/blog/meta-data/index.js";import"../../models/data/blog/tag/index.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import{IkasThemeJsonPageType as d}from"@ikas/storefront-models";import"mobx";import"../../models/data/campaign-offer/index.js";import"../../models/data/cart/campaign-offer/index.js";import"../../models/data/cart/index.js";import"../../models/data/category/path-item/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/checkout-settings/index.js";import"../../models/data/city/index.js";import"../../models/data/country/index.js";import"../../models/data/customer/address/region/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/address/ikas-localized-customer-address.js";import"../../models/data/customer/attribute/index.js";import"../../models/data/customer/review/summary/index.js";import"../../models/data/customer/review/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-form-data-input/index.js";import"../../models/data/district/index.js";import"../../models/data/favorite-product/index.js";import"../../models/data/filter-category/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import{IkasMerchantSettings as n}from"../../models/data/merchant-settings/index.js";import"../../models/data/order/address/region/index.js";import"../../models/data/order/address/index.js";import"../../models/data/order/line-item/option/value/index.js";import"../../models/data/order/line-item/variant/value/index.js";import"../../models/data/order/line-item/variant/index.js";import"../../models/data/order/line-item/index.js";import"../../models/data/order/order-transaction-with-prices/index.js";import"../../models/data/order/package/index.js";import"../../models/data/order/transaction/index.js";import"../../models/data/order/index.js";import"../../models/data/payment-gateway/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product/filter/index.js";import"../../models/data/product/campaign-offer/index.js";import"../../models/data/product/option-set/option/index.js";import"../../models/data/product/option-set/index.js";import"../../models/data/product/stock-location/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/index.js";import"../../models/data/raffle/index.js";import"../../models/data/shipping-zone/state/city/district/region/index.js";import"../../models/data/state/index.js";import"../../models/data/storefront-popup/storefront-popup-display-filter/index.js";import"../../models/data/storefront-popup/storefront-popup-display-settings/index.js";import"../../models/data/storefront-popup/storefront-popup-page-filter/index.js";import"../../models/data/storefront-popup/index.js";import"../../models/data/theme-json/index.js";import"../../models/data/theme-json/component/index.js";import{IkasThemeJsonCustomData as m}from"../../models/data/theme-json/custom-data/index.js";import"../../models/data/variant-type/variant-value/index.js";import"@ikas/localized-address";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/ikas-address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{IkasStorefrontConfig as p}from"@ikas/storefront-config";import{Analytics as l}from"../../analytics/analytics.js";import"../../analytics/head/index.js";import{IkasPageHead as c}from"./head.js";import{ThemeComponent as u}from"./ThemeComponent.js";import{IkasBaseStore as f}from"../../store/base.js";import"../../store/customer/index.js";import"../../store/cart/index.js";import{initIkasEvents as j}from"../../analytics/events.js";import{IkasPageDataInit as g}from"../../page-data-init/index.js";import{setAPIClientConfig as x}from"@ikas/storefront-api";import{usePopupWidget as v}from"./widgets/popupWidget.js";import{useLoyaltyWidget as y}from"./widgets/loyaltyWidget.js";var h=a((function(a){var u=a.propValues,h=a.themeJsonComponents,b=a.customDataList,S=a.pageType,C=a.pageTitle,D=a.pageDescription,P=a.pageSpecificData,k=a.canonicals,T=a.disableIndex,I=a.settings,E=a.configJson,R=a.reInitOnBrowser,M=a.addOgpMetas,V=a.components,O=a.productReviewSummary,z=s(),A=r.useState(),B=A[0],H=A[1];p.init(e(e({},E),{currentPageComponents:V,loginRequiredCallback:function(){z.push("/account/login")}})),f.getInstance().router=z,x();var F=f.getInstance();F.router=z,F.currentPageType=S;var U=r.useState(!1),_=U[0],J=U[1],L=r.useMemo((function(){return(null==B?void 0:B.id)===(null==P?void 0:P.id)&&g.pageSpecificData&&g.isBrowser?S===d.PRODUCT&&g._initProductOnBrowser(g.pageSpecificData):g.setPageSpecificData(P,S,_),g.initPagePropValues(u,h,b.map((function(e){return new m(e)})),I,_)}),t(t([],S!==d.SEARCH?[_]:[],!0),[u,S,I,P,h],!1));r.useEffect((function(){R&&J("undefined"!=typeof window),window.addToCart=F.cartStore._windowAddToCart,F.cartStore.getCart(),F.checkLocalization(),j()}),[]),r.useEffect((function(){P?(null==B?void 0:B.id)!==P.id&&H(P):H(null)}),[P]),r.useEffect((function(){var e=function(){F.customerStore.routeChangeInit()};return z.events.on("routeChangeStart",e),function(){z.events.off("routeChangeStart",e)}}),[]),r.useEffect((function(){!function(e,t){var r,a;o(this,void 0,void 0,(function(){var o,s,n,m,p,c;return i(this,(function(i){switch(i.label){case 0:return o=f.getInstance(),[4,l.pageView(e)];case 1:i.sent(),i.label=2;case 2:return i.trys.push([2,7,,8]),e!==d.PRODUCT?[3,4]:(s=t,[4,l.productView(s)]);case 3:i.sent(),o.customerStore.onProductView(s.id,s.selectedVariant.id),i.label=4;case 4:return e===d.CATEGORY&&(m=null===(r=(n=t).categoryPathItems)||void 0===r?void 0:r.map((function(e){return e.name})).join(" > "),m=n.categoryPathItems&&(null===(a=n.categoryPathItems)||void 0===a?void 0:a.length)>0?m+" > "+n.name:n.name,l.viewCategory(m,n)),e===d.BRAND&&(p=t,l.viewBrand(p)),e!==d.CART?[3,6]:[4,o.cartStore.waitUntilInitialized()];case 5:i.sent(),l.viewCart(o.cartStore.cart),i.label=6;case 6:return[3,8];case 7:return c=i.sent(),console.error(c),[3,8];case 8:return[2]}}))}))}(S,g.pageSpecificData)}),[S,P]),v({router:z,pageType:S,pageSpecificDataId:null==P?void 0:P.id}),y();var W=r.useMemo((function(){var e=L.find((function(e){return e.component.isHeader})),t=L.find((function(e){return e.component.isFooter})),o=L.filter((function(e){return!e.component.isHeader&&!e.component.isFooter}))||[];return r.createElement("div",{style:{position:"relative",minHeight:"100vh",display:"flex",flexDirection:"column",justifyContent:"space-between"}},r.createElement("div",null,e&&w(e,I,-1),o.map((function(e,t){return w(e,I,t)}))),t&&w(t,I,-1))}),[L,I]),q=r.useMemo((function(){return p.getMerchantSettings()?new n(p.getMerchantSettings()):null}),[p.getMerchantSettings()]);return r.createElement(r.Fragment,null,r.createElement(c,{pageType:S,pageTitle:C,pageDescription:D,pageSpecificData:g.pageSpecificData,canonicals:k&&k.length>0?k:null,disableIndex:T,merchantSettings:q,addOgpMetas:M,productReviewSummary:O,pageComponentPropValues:L}),W)})),w=function(e,t,o){return r.createElement(u,{key:e.pageComponent.id,index:o,pageComponentPropValue:e,settings:t})};export{h as IkasPage,w as renderComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{IkasStorefrontConfig as t}from"@ikas/storefront-config";var n=function(){var n=t.getDomain(),o=t.getCurrentRouting();return"undefined"!=typeof window?window.location.origin+((null==o?void 0:o.path)?"/".concat(o.path):""):(null==n?void 0:n.startsWith("http"))?n:"https://".concat(n)},o=function(){var n=t.getCurrentRouting();if(n)return"".concat((null==n?void 0:n.path)?"/".concat(n.path):"","/cart")};export{o as resolveCartUrl,n as resolveStoreUrl};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IkasLoyaltyWidgetConfig } from "@ikas/loyalty-widget-renderer";
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
ikasLoyaltyWidgetConfig?: IkasLoyaltyWidgetConfig;
|
|
5
|
+
startIkasLoyaltyWidget?: (config?: IkasLoyaltyWidgetConfig) => void;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const useLoyaltyWidget: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as e}from'./../../../ext/tslib/tslib.es6.js';import*as n from"react";import{getStorefrontWidgetSettings as r,listEarningMethods as i,listLoyaltyProgramTiers as o,listSpendingMethodsByCartId as a,getLoyaltyCustomerInfo as s,listLoyaltyProgramPointHistory as c,useLoyaltyPoints as d,removeLoyaltyPointsFromCart as u}from"@ikas/storefront-api";import{IkasStorefrontConfig as l}from"@ikas/storefront-config";import{IkasBaseStore as f}from"../../../store/base.js";import"../../../store/customer/index.js";import"../../../store/cart/index.js";import v from"../../../store/product/index.js";import y from"../../../store/category/index.js";import g from"../../../store/brand/index.js";import{resolveStoreUrl as h}from"./common.js";function p(n){var h,p=this,m=f.getInstance(),w=function(){var t;return null===(t=m.cartStore.cart)||void 0===t?void 0:t.id},b=function(t){var e,n=null!==(e=null==t?void 0:t.themeSettingsJson)&&void 0!==e?e:t;if(!n)throw new Error("Loyalty widget settings not found");if("string"==typeof n)try{return JSON.parse(n)}catch(t){throw new Error("Loyalty widget settings format is invalid")}return n};return{getLoyaltyWidget:function(){return t(p,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return n?[2,b(n)]:[4,r()];case 1:if((t=e.sent()).isSuccess&&t.data)return[2,b(t.data)];throw new Error("Loyalty widget settings not found")}}))}))},listEarningMethods:function(){return t(p,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,i()];case 1:return[2,t.sent().data||[]]}}))}))},listLoyaltyProgramTier:function(n){return t(p,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,o()];case 1:return[2,t.sent().data||[]]}}))}))},listSpendingMethodsByCartId:function(n){return t(p,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,a({cartId:n||w()})];case 1:return[2,t.sent().data||[]]}}))}))},getLoyaltyCustomerInfo:function(){return t(p,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,s({cartId:w()||null})];case 1:return[2,t.sent().data||null]}}))}))},listLoyaltyProgramPointHistory:function(n){return t(p,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return t={},(r=null==n?void 0:n.type)&&(t.type=Array.isArray(r)?{in:r}:{eq:r}),[4,c(t)];case 1:return[2,e.sent().data||[]]}}))}))},useLoyaltyPoints:function(n){return t(p,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,d({input:n})];case 1:return(t=e.sent()).isSuccess?(h=n.loyaltySpendingMethodId,[4,m.cartStore.getCart()]):[3,3];case 2:e.sent(),e.label=3;case 3:return[2,!!t.isSuccess]}}))}))},removeLoyaltyPointsFromCart:function(){return t(p,void 0,void 0,(function(){var t,n,r,i,o;return e(this,(function(e){switch(e.label){case 0:return t=w(),n=h||(null===(o=null===(i=null===(r=m.cartStore.cart)||void 0===r?void 0:r.loyaltyLines)||void 0===i?void 0:i[0])||void 0===o?void 0:o.loyaltySpendingMethodId),t&&n?[4,u({cartId:t,loyaltySpendingMethodId:n})]:[2];case 1:return e.sent().isSuccess?[4,m.cartStore.getCart()]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},getProducts:function(n){return t(p,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return(null==n?void 0:n.length)?[4,v.searchProducts({input:{productIdList:n,page:1,perPage:n.length,priceListId:l.getPriceListId(),salesChannelId:l.getSalesChannelId()}},[])]:[2,[]];case 1:return t=e.sent(),[2,(null===(r=t.data)||void 0===r?void 0:r.data)||[]]}}))}))},getCategories:function(n){return t(p,void 0,void 0,(function(){var t,r,i;return e(this,(function(e){switch(e.label){case 0:return(null==n?void 0:n.length)?(t={id:{in:n},pagination:{limit:n.length,page:1}},[4,y.listCategory(t)]):[2,[]];case 1:return r=e.sent(),[2,(null===(i=r.data)||void 0===i?void 0:i.data)||[]]}}))}))},getBrands:function(n){return t(p,void 0,void 0,(function(){var t,r,i;return e(this,(function(e){switch(e.label){case 0:return(null==n?void 0:n.length)?(t={id:{in:n},pagination:{limit:n.length,page:1}},[4,g.listProductBrand(t)]):[2,[]];case 1:return r=e.sent(),[2,(null===(i=r.data)||void 0===i?void 0:i.data)||[]]}}))}))},getTags:function(n){return t(p,void 0,void 0,(function(){return e(this,(function(t){return[2,[]]}))}))}}}var m=function(){n.useEffect((function(){if("undefined"!=typeof window&&"undefined"!=typeof document){var n=!1,i=function(t){if("function"==typeof window.startIkasLoyaltyWidget)try{window.startIkasLoyaltyWidget(t)}catch(t){console.error("[@ikas/storefront] Failed to start loyalty widget",t)}},o=function(t){var e=window.location.href.includes("http://localhost:3333/")?"http://localhost:3000/loyalty-widget-script-injector.iife.js":"/sf/assets/loyalty/loyalty-widget-script-injector.iife.js";if(e){var r=document.querySelector('script[data-ikas-loyalty-widget="true"]');if(r)"true"===r.dataset.loaded?i(t):r.addEventListener("load",(function(){return i(t)}),{once:!0});else{var o=document.createElement("script");o.src=e,o.defer=!0,o.setAttribute("data-ikas-loyalty-widget","true"),o.addEventListener("load",(function(){o.dataset.loaded="true",n||i(t)}),{once:!0}),o.addEventListener("error",(function(t){console.error("[@ikas/storefront] Failed to load loyalty widget script",e,t)}),{once:!0}),document.body.appendChild(o)}}};return t(void 0,void 0,void 0,(function(){var n,i,a;return e(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),[4,r()];case 1:return(null==(n=s.sent())?void 0:n.isSuccess)&&n.data?[4,(c=n.data,t(void 0,void 0,void 0,(function(){var t,n,r,i;return e(this,(function(e){switch(e.label){case 0:return t={cdnURL:l.getCdnUrl()||"",merchantId:(null===(r=l.getMerchantSettings())||void 0===r?void 0:r.merchantId)||"",currency:l.getDefaultCurrencySymbol()||"TRY",locale:l.getCurrentLocale()||"tr",callbacks:p(c),position:"fixed",storeURL:h()},[4,new Promise((function(t){var e=setInterval((function(){var n=l.getSessionId();n&&(clearInterval(e),t(n))}),100)}))];case 1:return e.sent(),(n=null===(i=f.getInstance().cartStore.cart)||void 0===i?void 0:i.id)&&(t.cartId=n),c&&(t.widgetSettings=c),[2,t]}}))})))]:[2];case 2:return i=s.sent(),window.ikasLoyaltyWidgetConfig=i,o(i),[3,4];case 3:return a=s.sent(),console.error("[@ikas/storefront] Failed to initialize loyalty widget",a),[3,4];case 4:return[2]}var c}))})),function(){n=!0}}}),[])};export{m as useLoyaltyWidget};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NextRouter } from "next/router";
|
|
2
|
+
import { IkasThemeJsonPageType } from "../../../models";
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
ikasPopupConfig?: any;
|
|
6
|
+
startIkasPopupWidget?: (config?: any) => void;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare function usePopupWidget(options: {
|
|
10
|
+
router: NextRouter;
|
|
11
|
+
pageType: IkasThemeJsonPageType;
|
|
12
|
+
pageSpecificDataId?: string | null;
|
|
13
|
+
}): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as e,__assign as r}from'./../../../ext/tslib/tslib.es6.js';import*as n from"react";import{listStorefrontPopup as o,SortByDirectionEnum as i}from"@ikas/storefront-api";import{IkasStorefrontConfig as s}from"@ikas/storefront-config";import{IkasBaseStore as a}from"../../../store/base.js";import"../../../store/customer/index.js";import"../../../store/cart/index.js";import u from"../../../store/product/index.js";import{resolveStoreUrl as c,resolveCartUrl as d}from"./common.js";var l=function(r){return t(void 0,void 0,void 0,(function(){var n,o,i,l,f,v,m,h,g,w,I,P,S,y,C;return e(this,(function(L){switch(L.label){case 0:return n={popups:r,cartUrl:""},[4,function(){return new Promise((function(t){var e=setInterval((function(){var r=s.getSessionId();r&&(clearInterval(e),t(r))}),100)}))}()];case 1:return L.sent(),(o=s.getSessionId())&&(n.sessionId=o),(i=s.getCdnUrl())&&(n.cdnUrl=i),(l=null===(S=s.getMerchantSettings())||void 0===S?void 0:S.merchantId)&&(n.merchantId=l),(f=c())&&(n.storeUrl=f),(v=d())&&(n.cartUrl=v),(m=s.getCustomerToken())&&(n.customerToken=m),(h=s.getCurrentLocale())&&(n.locale=h),(g=null===(C=null===(y=s.getCurrentRouting())||void 0===y?void 0:y.countryCodes)||void 0===C?void 0:C[0])&&(n.countryCode=g),(w=s.getPriceListId())&&(n.priceListId=w),(I=s.getSalesChannelId())&&(n.salesChannelId=I),b=a.getInstance().customerStore.customer,(P=b?{email:b.email,firstName:b.firstName,lastName:b.lastName,birthDate:b.birthDate,phone:b.phone}:null)&&(n.customer=P),n.services=function(){var r=this,n=a.getInstance();return{searchProducts:function(n){return t(r,void 0,void 0,(function(){var t,r,o;return e(this,(function(e){switch(e.label){case 0:return[4,u.searchProducts(p(n))];case 1:return(null==(t=e.sent())?void 0:t.isSuccess)&&(null===(o=null===(r=t.data)||void 0===r?void 0:r.data)||void 0===o?void 0:o.length)?[2,t.data.data]:[2,[]]}}))}))},addItemToCart:function(o){var i=o.product,s=o.variant,a=o.quantity;return t(r,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,n.cartStore.addItem(s,i,null!=a?a:1)];case 1:return[2,{success:!!(null==(t=e.sent())?void 0:t.success)}]}}))}))},saveCustomerFormData:function(o){return t(r,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,n.customerStore.saveCustomerFormData({email:o.email,firstName:o.firstName,lastName:o.lastName,birthDate:o.birthDate||"",phone:o.phone||"",storefrontPopupId:o.popupId,subscriptions:o.subscriptions})];case 1:return t.sent(),[2]}}))}))},getLastViewedProducts:function(){return t(r,void 0,void 0,(function(){var t;return e(this,(function(e){return"function"==typeof(t=n.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)}}}(),[2,n]}var b}))}))};function p(t){var e,r,n,o,a,u=null===(e=t.order)||void 0===e?void 0:e.map((function(t){return{direction:"ASC"===t.direction?i.ASC:i.DESC,type:t.type}}));return{input:{page:null!==(r=t.page)&&void 0!==r?r:1,perPage:null!==(n=t.perPage)&&void 0!==n?n:10,order:u,productIdList:t.productIdList,categoryIdList:t.categoryIdList,priceListId:null!==(o=t.priceListId)&&void 0!==o?o:s.getPriceListId(),salesChannelId:null!==(a=t.salesChannelId)&&void 0!==a?a:s.getSalesChannelId()}}}function f(i){var a=this,u=i.router,c=i.pageSpecificDataId,d=i.pageType;n.useEffect((function(){if("undefined"!=typeof window&&"undefined"!=typeof document){var n,i=!1,u=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 r=function(){t.dataset.ikasPopupWidgetLoaded="true",e()},n=function(e){console.error("[@ikas/storefront] Failed to load popup widget script",t.src,e)};return t.addEventListener("load",r,{once:!0}),t.addEventListener("error",n,{once:!0}),function(){t.removeEventListener("load",r),t.removeEventListener("error",n)}},c=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 r=function(){i||function(t){if("function"==typeof window.startIkasPopupWidget)try{window.startIkasPopupWidget(t)}catch(t){console.error("[@ikas/storefront] Failed to start popup widget",t)}}(t)},o=document.querySelector('script[data-ikas-popup-widget="true"]');if(o)n=u(o,r);else{var s=document.createElement("script");s.src=e,s.defer=!0,n=u(s,r),document.body.appendChild(s)}}},d=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 r=document.createElement("link");r.rel="stylesheet",r.href=e,r.setAttribute("data-ikas-popup-widget","true");r.addEventListener("error",(function(t){console.error("[@ikas/storefront] Failed to load popup widget CSS",e,t)}),{once:!0}),document.head.appendChild(r)}};return t(a,void 0,void 0,(function(){var n,u,p;return e(this,(function(f){switch(f.label){case 0:return n=s.getStorefrontPopups()||[],[4,(v=n,t(a,void 0,void 0,(function(){var t,n,i,s,a;return e(this,(function(e){switch(e.label){case 0:if(!(t=v.map((function(t){return t.id})).filter(Boolean)).length)return[2,v];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,o({idList:t})];case 2:return(null==(n=e.sent())?void 0:n.isSuccess)&&(null===(a=n.data)||void 0===a?void 0:a.length)?(i=n.data,[2,v.map((function(t){var e=i.find((function(e){return e.id===t.id}));return e?r(r({},e),{isFilteredOnServerSide:t.isFilteredOnServerSide}):t}))]):[3,4];case 3:return s=e.sent(),console.error("[@ikas/storefront] Failed to fetch popup details",s),[3,4];case 4:return[2,v]}}))})))];case 1:return u=f.sent(),i?[2]:[4,l(u)];case 2:return p=f.sent(),window.ikasPopupConfig=p,c(p),d(),[2]}var v}))})),function(){i=!0,null==n||n()}}}),[u.asPath,c,d])}export{f as usePopupWidget};
|
|
@@ -60,8 +60,8 @@ export default class CustomerStoreAPI {
|
|
|
60
60
|
static listCustomerAttribute(): Promise<APIResponse<IkasCustomerAttribute[]>>;
|
|
61
61
|
static activateCustomer(params: ActivateCustomerQueryParams): Promise<APIResponse<undefined> | APIResponse<string>>;
|
|
62
62
|
static resendCustomerActivationMail(params: ResendCustomerActivationMailQueryParams): Promise<APIResponse<undefined> | APIResponse<boolean>>;
|
|
63
|
-
static resendCustomerPhoneVerificationCode(): Promise<APIResponse<
|
|
64
|
-
static validateCustomerPhoneVerificationCode(params: ValidateCustomerPhoneVerificationCodeQueryParams): Promise<APIResponse<
|
|
63
|
+
static resendCustomerPhoneVerificationCode(): Promise<APIResponse<boolean>>;
|
|
64
|
+
static validateCustomerPhoneVerificationCode(params: ValidateCustomerPhoneVerificationCodeQueryParams): Promise<APIResponse<boolean>>;
|
|
65
65
|
static validateOTPCode(params: ValidateOTPCodeQueryParams): Promise<APIResponse<{
|
|
66
66
|
customer: IkasCustomer | null;
|
|
67
67
|
flowId: string | null;
|
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.202",
|
|
4
4
|
"description": "Storefront functionality for ikas storefront themes.",
|
|
5
5
|
"author": "ikas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -17,16 +17,17 @@
|
|
|
17
17
|
"build": "rm -rf build && rollup -c"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
+
"@ikas/loyalty-widget-renderer": "1.0.0-alpha.32",
|
|
20
21
|
"@ikas/popup-renderer": "1.0.227",
|
|
21
22
|
"@ikas/popup-script-injector": "1.0.0-alpha.18",
|
|
22
23
|
"swiper": "11.0.6"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
|
-
"@ikas/storefront-api": "^6.1.0-beta.
|
|
26
|
-
"@ikas/storefront-config": "^6.1.0-beta.
|
|
27
|
-
"@ikas/storefront-model-functions": "^6.1.0-beta.
|
|
28
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
29
|
-
"@ikas/storefront-providers": "^6.1.0-beta.
|
|
26
|
+
"@ikas/storefront-api": "^6.1.0-beta.202",
|
|
27
|
+
"@ikas/storefront-config": "^6.1.0-beta.202",
|
|
28
|
+
"@ikas/storefront-model-functions": "^6.1.0-beta.202",
|
|
29
|
+
"@ikas/storefront-models": "^6.1.0-beta.202",
|
|
30
|
+
"@ikas/storefront-providers": "^6.1.0-beta.202",
|
|
30
31
|
"@ikas/localized-address": "1.0.0-beta.6",
|
|
31
32
|
"@adyen/adyen-web": "^5.57.0",
|
|
32
33
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
@@ -61,11 +62,11 @@
|
|
|
61
62
|
},
|
|
62
63
|
"peerDependencies": {
|
|
63
64
|
"@ikas/localized-address": "1.0.0-beta.6",
|
|
64
|
-
"@ikas/storefront-api": "^6.1.0-beta.
|
|
65
|
-
"@ikas/storefront-config": "^6.1.0-beta.
|
|
66
|
-
"@ikas/storefront-model-functions": "^6.1.0-beta.
|
|
67
|
-
"@ikas/storefront-models": "^6.1.0-beta.
|
|
68
|
-
"@ikas/storefront-providers": "^6.1.0-beta.
|
|
65
|
+
"@ikas/storefront-api": "^6.1.0-beta.202",
|
|
66
|
+
"@ikas/storefront-config": "^6.1.0-beta.202",
|
|
67
|
+
"@ikas/storefront-model-functions": "^6.1.0-beta.202",
|
|
68
|
+
"@ikas/storefront-models": "^6.1.0-beta.202",
|
|
69
|
+
"@ikas/storefront-providers": "^6.1.0-beta.202",
|
|
69
70
|
"mobx": "^6.1.3",
|
|
70
71
|
"mobx-react-lite": "^3.1.5",
|
|
71
72
|
"next": "12.2.0",
|