@ikas/storefront 2.0.21 → 2.0.22
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/_virtual/index.js_commonjs-proxy2.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
- package/build/api/product-search/index.js +1 -1
- package/build/api/storefront/index.js +1 -1
- package/build/ikas.js +2 -2
- package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +5 -0
- package/build/models/data/storefront/routing/dynamic-currency/index.js +1 -0
- package/build/models/data/storefront/routing/index.d.ts +2 -0
- package/build/models/data/storefront/routing/index.js +1 -1
- package/build/storefront/index.d.ts +1 -0
- package/build/storefront/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(r){this.roundingFormat=r.roundingFormat||null,this.targetCurrencyCode=r.targetCurrencyCode||""};export{r as IkasStorefrontDynamicCurrencySettings};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IkasStorefrontDynamicCurrencySettings } from "./dynamic-currency";
|
|
1
2
|
export declare class IkasStorefrontRouting {
|
|
2
3
|
id: string;
|
|
3
4
|
countryCodes: string[] | null;
|
|
@@ -5,5 +6,6 @@ export declare class IkasStorefrontRouting {
|
|
|
5
6
|
locale: string;
|
|
6
7
|
path: string | null;
|
|
7
8
|
priceListId: string | null;
|
|
9
|
+
dynamicCurrencySettings: IkasStorefrontDynamicCurrencySettings | null;
|
|
8
10
|
constructor(data: Partial<IkasStorefrontRouting>);
|
|
9
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
import{IkasStorefrontDynamicCurrencySettings as i}from"./dynamic-currency/index.js";var n=function(n){this.id=n.id||"",this.countryCodes=n.countryCodes||null,this.domain=n.domain||null,this.locale=n.locale||"",this.path=n.path||null,this.priceListId=n.priceListId||null,this.dynamicCurrencySettings=n.dynamicCurrencySettings?new i(n.dynamicCurrencySettings):null};export{n as IkasStorefrontRouting};
|
|
@@ -32,6 +32,7 @@ export declare class IkasStorefrontConfig {
|
|
|
32
32
|
static currentPageComponents?: Record<string, any>;
|
|
33
33
|
static init(store: IkasBaseStore, config: Record<string, any>, apiUrlOverride?: string): void;
|
|
34
34
|
static initWithJson(json: Record<string, any>, router: NextRouter): void;
|
|
35
|
+
static getCurrentRouting(): IkasStorefrontRouting | undefined;
|
|
35
36
|
static getCurrentLocale(): string;
|
|
36
37
|
static getJson(): {
|
|
37
38
|
domain: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=function(){function t(){}return t.init=function(n,r,o){t.store=n,t.config=r,t.apiUrlOverride=o||null,"local"===process.env.NEXT_PUBLIC_ENV&&(this.storefrontId=r.storefrontId)},t.initWithJson=function(n,r){try{Object.entries(n).forEach((function(n){var r=n[0],o=n[1];t[r]=o})),t.router=r}catch(t){console.log(t)}},t.
|
|
1
|
+
var t=function(){function t(){}return t.init=function(n,r,o){t.store=n,t.config=r,t.apiUrlOverride=o||null,"local"===process.env.NEXT_PUBLIC_ENV&&(this.storefrontId=r.storefrontId)},t.initWithJson=function(n,r){try{Object.entries(n).forEach((function(n){var r=n[0],o=n[1];t[r]=o})),t.router=r}catch(t){console.log(t)}},t.getCurrentRouting=function(){return t.routings.find((function(n){return n.id===t.storefrontRoutingId}))},t.getCurrentLocale=function(){var n=t.getCurrentRouting();return(null==n?void 0:n.locale)||"en"},t.getJson=function(){return{domain:t.domain,storefrontId:t.storefrontId||null,storefrontRoutingId:t.storefrontRoutingId||null,storefrontThemeId:t.storefrontThemeId||null,salesChannelId:t.salesChannelId||null,priceListId:t.priceListId||null,stockLocationIds:t.stockLocationIds||null,routings:JSON.parse(JSON.stringify(t.routings))||null,paymentGateways:JSON.parse(JSON.stringify(t.paymentGateways))||null,gtmId:t.gtmId||null,fbpId:t.fbpId||null,favicon:JSON.parse(JSON.stringify(t.favicon)),stockPreference:t.stockPreference||null,storefrontJSScripts:t.storefrontJSScripts||[],translations:this.translations,customerReviewSettings:t.customerReviewSettings,productBackInStockSettings:t.productBackInStockSettings?JSON.parse(JSON.stringify(t.productBackInStockSettings)):null}},t.config={},t.apiUrlOverride=null,t.routings=[],t.paymentGateways=[],t.translations={},t.storefrontJSScripts=[],t.isEditor=!1,t}();export{t as IkasStorefrontConfig};
|