@ikas/storefront 0.0.162-alpha.18 → 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 +125 -234
- package/build/index.js +125 -234
- 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
|
@@ -2,8 +2,7 @@ import { IkasProductListPropValue, IkasThemePageType } from "../../theme/index";
|
|
|
2
2
|
import { IkasProductDetail } from "../product-detail/index";
|
|
3
3
|
import { IkasProductFilter } from "../../data/product-filter/index";
|
|
4
4
|
import { NextRouter } from "next/router";
|
|
5
|
-
import {
|
|
6
|
-
import { IkasBrand } from "../../data/index";
|
|
5
|
+
import { IkasFilterCategory } from "../../data/category/index";
|
|
7
6
|
export declare class IkasProductList {
|
|
8
7
|
data: IkasProductDetail[];
|
|
9
8
|
filters?: IkasProductFilter[] | null;
|
|
@@ -21,7 +20,6 @@ export declare class IkasProductList {
|
|
|
21
20
|
private _productListPropValue;
|
|
22
21
|
private _filterBrandId?;
|
|
23
22
|
private _filterCategoryId?;
|
|
24
|
-
private pageSpecificData?;
|
|
25
23
|
private _recommendFor?;
|
|
26
24
|
private _isLoading;
|
|
27
25
|
private _fetchRequestTime;
|
|
@@ -50,8 +48,6 @@ export declare class IkasProductList {
|
|
|
50
48
|
get filterQueryParams(): string;
|
|
51
49
|
get filterCategories(): IkasFilterCategory[] | undefined;
|
|
52
50
|
get hasAppliedfilter(): boolean | undefined;
|
|
53
|
-
get isFeaturedSortEnabled(): boolean;
|
|
54
|
-
private setPageSpecificSort;
|
|
55
51
|
private getSortParams;
|
|
56
52
|
private searchProducts;
|
|
57
53
|
private getFilters;
|
|
@@ -82,7 +78,6 @@ export declare class IkasProductList {
|
|
|
82
78
|
filters: IkasProductFilter[] | null | undefined;
|
|
83
79
|
recommendFor: string | null | undefined;
|
|
84
80
|
productListPropValue: IkasProductListPropValue;
|
|
85
|
-
pageSpecificData: IkasCategory | IkasBrand | null | undefined;
|
|
86
81
|
};
|
|
87
82
|
setVisibleInfiniteScrollPage: (page: number) => void;
|
|
88
83
|
private restoreInfiniteScrollPage;
|
|
@@ -109,7 +104,6 @@ export declare type IkasProductListParams = {
|
|
|
109
104
|
filterCategories?: IkasFilterCategory[];
|
|
110
105
|
recommendFor?: string;
|
|
111
106
|
productListPropValue: IkasProductListPropValue;
|
|
112
|
-
pageSpecificData?: IkasCategory | IkasBrand | null;
|
|
113
107
|
};
|
|
114
108
|
export declare enum IkasProductListType {
|
|
115
109
|
ALL = "ALL",
|
|
@@ -126,6 +120,5 @@ export declare enum IkasProductListSortType {
|
|
|
126
120
|
LAST_ADDED = "LAST_ADDED",
|
|
127
121
|
FIRST_ADDED = "FIRST_ADDED",
|
|
128
122
|
INCREASING_DISCOUNT = "INCREASING_DISCOUNT",
|
|
129
|
-
DECRASING_DISCOUNT = "DECRASING_DISCOUNT"
|
|
130
|
-
FEATURED = "FEATURED"
|
|
123
|
+
DECRASING_DISCOUNT = "DECRASING_DISCOUNT"
|
|
131
124
|
}
|
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 = {
|