@ikas/storefront 0.0.162-alpha.14 → 0.0.162-alpha.15
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/index.es.js +0 -5
- package/build/index.js +0 -5
- package/build/utils/settings.d.ts +10 -10
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -38275,11 +38275,6 @@ var SettingsHelper = /** @class */ (function () {
|
|
|
38275
38275
|
isLocal = process.env.NEXT_PUBLIC_ENV === "local";
|
|
38276
38276
|
isProdEditor = !isLocal && isEditor;
|
|
38277
38277
|
serverRuntimeConfig = getConfig().serverRuntimeConfig;
|
|
38278
|
-
if (isEditor) {
|
|
38279
|
-
return [2 /*return*/, {
|
|
38280
|
-
props: {},
|
|
38281
|
-
}];
|
|
38282
|
-
}
|
|
38283
38278
|
if (!!isProdEditor) return [3 /*break*/, 5];
|
|
38284
38279
|
locale = context.locale;
|
|
38285
38280
|
if (!locale) {
|
package/build/index.js
CHANGED
|
@@ -38253,11 +38253,6 @@ var SettingsHelper = /** @class */ (function () {
|
|
|
38253
38253
|
isLocal = process.env.NEXT_PUBLIC_ENV === "local";
|
|
38254
38254
|
isProdEditor = !isLocal && isEditor;
|
|
38255
38255
|
serverRuntimeConfig = getConfig__default['default']().serverRuntimeConfig;
|
|
38256
|
-
if (isEditor) {
|
|
38257
|
-
return [2 /*return*/, {
|
|
38258
|
-
props: {},
|
|
38259
|
-
}];
|
|
38260
|
-
}
|
|
38261
38256
|
if (!!isProdEditor) return [3 /*break*/, 5];
|
|
38262
38257
|
locale = context.locale;
|
|
38263
38258
|
if (!locale) {
|
|
@@ -13,10 +13,6 @@ export declare class SettingsHelper {
|
|
|
13
13
|
static readSettingsFile(): Promise<any>;
|
|
14
14
|
static getSettings(locale: string): Promise<SettingsData | null>;
|
|
15
15
|
static getPageData(context: GetStaticPropsContext<ParsedUrlQuery> | GetServerSidePropsContext<ParsedUrlQuery>, isServer: boolean, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[], isEditor?: boolean): Promise<{
|
|
16
|
-
props: {};
|
|
17
|
-
notFound?: undefined;
|
|
18
|
-
revalidate?: undefined;
|
|
19
|
-
} | {
|
|
20
16
|
props: {};
|
|
21
17
|
notFound: boolean;
|
|
22
18
|
revalidate?: undefined;
|
|
@@ -70,12 +66,12 @@ export declare class SettingsHelper {
|
|
|
70
66
|
};
|
|
71
67
|
revalidate: number;
|
|
72
68
|
notFound?: undefined;
|
|
73
|
-
}
|
|
74
|
-
static getStaticProps(context: GetStaticPropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[], isEditor?: boolean): Promise<{
|
|
69
|
+
} | {
|
|
75
70
|
props: {};
|
|
76
71
|
notFound?: undefined;
|
|
77
72
|
revalidate?: undefined;
|
|
78
|
-
}
|
|
73
|
+
}>;
|
|
74
|
+
static getStaticProps(context: GetStaticPropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[], isEditor?: boolean): Promise<{
|
|
79
75
|
props: {};
|
|
80
76
|
notFound: boolean;
|
|
81
77
|
revalidate?: undefined;
|
|
@@ -129,12 +125,12 @@ export declare class SettingsHelper {
|
|
|
129
125
|
};
|
|
130
126
|
revalidate: number;
|
|
131
127
|
notFound?: undefined;
|
|
132
|
-
}
|
|
133
|
-
static getServerSideProps(context: GetServerSidePropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType): Promise<{
|
|
128
|
+
} | {
|
|
134
129
|
props: {};
|
|
135
130
|
notFound?: undefined;
|
|
136
131
|
revalidate?: undefined;
|
|
137
|
-
}
|
|
132
|
+
}>;
|
|
133
|
+
static getServerSideProps(context: GetServerSidePropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType): Promise<{
|
|
138
134
|
props: {};
|
|
139
135
|
notFound: boolean;
|
|
140
136
|
revalidate?: undefined;
|
|
@@ -188,6 +184,10 @@ export declare class SettingsHelper {
|
|
|
188
184
|
};
|
|
189
185
|
revalidate: number;
|
|
190
186
|
notFound?: undefined;
|
|
187
|
+
} | {
|
|
188
|
+
props: {};
|
|
189
|
+
notFound?: undefined;
|
|
190
|
+
revalidate?: undefined;
|
|
191
191
|
}>;
|
|
192
192
|
}
|
|
193
193
|
export declare type SettingsData = {
|