@ikas/storefront 0.0.162-alpha.17 → 0.0.162-alpha.2
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/__generated__/global-types.d.ts +0 -13
- package/build/api/brand/__generated__/listProductBrand.d.ts +1 -2
- package/build/api/category/__generated__/listCategory.d.ts +1 -2
- package/build/index.es.js +124 -233
- package/build/index.js +124 -233
- package/build/models/data/brand/index.d.ts +0 -2
- package/build/models/data/category/index.d.ts +0 -11
- package/build/models/ui/product-list/index.d.ts +2 -9
- package/build/pages/editor.d.ts +4 -5
- package/build/storefront/index.d.ts +0 -1
- package/build/utils/i18n.d.ts +1 -1
- package/build/utils/settings.d.ts +0 -12
- package/package.json +1 -1
package/build/pages/editor.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { GetStaticProps } from "next";
|
|
3
|
-
declare type Props = {
|
|
4
|
-
configJson: Record<string, any>;
|
|
5
|
-
};
|
|
6
3
|
export declare const getStaticProps: GetStaticProps;
|
|
7
|
-
declare const _default:
|
|
4
|
+
declare const _default: (() => JSX.Element) & {
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
8
7
|
export default _default;
|
|
@@ -21,7 +21,6 @@ export declare class IkasStorefrontConfig {
|
|
|
21
21
|
static favicon: IkasThemeFavicon;
|
|
22
22
|
static stockPreference: IkasThemeStockPreference;
|
|
23
23
|
static translations: Record<string, any>;
|
|
24
|
-
static isEditor: boolean;
|
|
25
24
|
static init(store: IkasBaseStore, components: any, config: Record<string, any>, apiUrlOverride?: string): void;
|
|
26
25
|
static initWithJson(json: Record<string, any>): void;
|
|
27
26
|
static getJson(): {
|
package/build/utils/i18n.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare class I18NFileReader {
|
|
|
7
7
|
private readLocaleFile;
|
|
8
8
|
}
|
|
9
9
|
declare function t(pathString: string, params?: Record<string, any>): any;
|
|
10
|
-
export declare function useTranslation(
|
|
10
|
+
export declare function useTranslation(): {
|
|
11
11
|
t: typeof t;
|
|
12
12
|
};
|
|
13
13
|
export {};
|
|
@@ -66,10 +66,6 @@ export declare class SettingsHelper {
|
|
|
66
66
|
};
|
|
67
67
|
revalidate: number;
|
|
68
68
|
notFound?: undefined;
|
|
69
|
-
} | {
|
|
70
|
-
props: {};
|
|
71
|
-
notFound?: undefined;
|
|
72
|
-
revalidate?: undefined;
|
|
73
69
|
}>;
|
|
74
70
|
static getStaticProps(context: GetStaticPropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[], isEditor?: boolean): Promise<{
|
|
75
71
|
props: {};
|
|
@@ -125,10 +121,6 @@ export declare class SettingsHelper {
|
|
|
125
121
|
};
|
|
126
122
|
revalidate: number;
|
|
127
123
|
notFound?: undefined;
|
|
128
|
-
} | {
|
|
129
|
-
props: {};
|
|
130
|
-
notFound?: undefined;
|
|
131
|
-
revalidate?: undefined;
|
|
132
124
|
}>;
|
|
133
125
|
static getServerSideProps(context: GetServerSidePropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType): Promise<{
|
|
134
126
|
props: {};
|
|
@@ -184,10 +176,6 @@ export declare class SettingsHelper {
|
|
|
184
176
|
};
|
|
185
177
|
revalidate: number;
|
|
186
178
|
notFound?: undefined;
|
|
187
|
-
} | {
|
|
188
|
-
props: {};
|
|
189
|
-
notFound?: undefined;
|
|
190
|
-
revalidate?: undefined;
|
|
191
179
|
}>;
|
|
192
180
|
}
|
|
193
181
|
export declare type SettingsData = {
|