@ikas/storefront 0.0.126 → 0.0.128
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 +13 -0
- package/build/api/blog/__generated__/getBlog.d.ts +81 -0
- package/build/api/blog/__generated__/listBlog.d.ts +75 -0
- package/build/api/blog/__generated__/listBlogCategory.d.ts +38 -0
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +29 -0
- package/build/api/blog/index.d.ts +32 -0
- package/build/api/brand/__generated__/listProductBrand.d.ts +1 -0
- package/build/api/brand/index.d.ts +1 -0
- package/build/api/category/__generated__/listCategory.d.ts +1 -0
- package/build/api/category/index.d.ts +1 -0
- package/build/api/index.d.ts +1 -0
- package/build/components/checkout/components/checkbox/index.d.ts +1 -0
- package/build/index.es.js +1585 -334
- package/build/index.js +1595 -333
- package/build/models/data/blog/index.d.ts +54 -0
- package/build/models/data/brand/index.d.ts +1 -1
- package/build/models/data/category/index.d.ts +1 -1
- package/build/models/data/index.d.ts +1 -0
- package/build/models/theme/component/prop/index.d.ts +3 -1
- package/build/models/theme/custom-data/index.d.ts +2 -0
- package/build/models/theme/index.d.ts +2 -0
- package/build/models/theme/page/component/prop-value/blog-list.d.ts +9 -0
- package/build/models/theme/page/component/prop-value/blog.d.ts +5 -0
- package/build/models/theme/page/index.d.ts +4 -1
- package/build/models/ui/blog-list/index.d.ts +55 -0
- package/build/models/ui/brand-list/index.d.ts +2 -0
- package/build/models/ui/category-list/index.d.ts +2 -0
- package/build/models/ui/index.d.ts +1 -0
- package/build/models/ui/product-detail/index.d.ts +1 -2
- package/build/models/ui/product-list/index.d.ts +5 -5
- package/build/pages/blog/[slug].d.ts +18 -0
- package/build/pages/blog/index.d.ts +13 -0
- package/build/store/customer.d.ts +1 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/providers/page-data.d.ts +7 -1
- package/build/utils/providers/placeholders.d.ts +5 -0
- package/build/utils/providers/prop-value/blog-list.d.ts +9 -0
- package/build/utils/providers/prop-value/blog.d.ts +8 -0
- package/build/utils/providers/prop-value/custom.d.ts +2 -0
- package/build/utils/providers/prop-value/product-list.d.ts +1 -3
- package/build/utils/settings.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare class IkasBlog {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt: string;
|
|
5
|
+
categoryId: string | null;
|
|
6
|
+
category: IkasBlogCategory | null;
|
|
7
|
+
imageId: string | null;
|
|
8
|
+
title: string | null;
|
|
9
|
+
shortDescription: string | null;
|
|
10
|
+
isPublished: boolean;
|
|
11
|
+
storefrontId: string;
|
|
12
|
+
tagIds: string[] | null;
|
|
13
|
+
writer: IkasBlogWriter;
|
|
14
|
+
blogContent: IkasBlogContent;
|
|
15
|
+
metadata: IkasBlogMetaData | null;
|
|
16
|
+
constructor(data?: Partial<IkasBlog>);
|
|
17
|
+
}
|
|
18
|
+
export declare class IkasBlogContent {
|
|
19
|
+
id: string;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
content: string;
|
|
23
|
+
constructor(data?: Partial<IkasBlogContent>);
|
|
24
|
+
}
|
|
25
|
+
export declare class IkasBlogWriter {
|
|
26
|
+
firstName: string;
|
|
27
|
+
lastName: string;
|
|
28
|
+
constructor(data?: Partial<IkasBlogWriter>);
|
|
29
|
+
}
|
|
30
|
+
export declare enum IkasBlogMetadataTargetType {
|
|
31
|
+
BLOG = "BLOG",
|
|
32
|
+
BLOG_CATEGORY = "BLOG_CATEGORY"
|
|
33
|
+
}
|
|
34
|
+
export declare class IkasBlogMetaData {
|
|
35
|
+
id: string;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
updatedAt: string;
|
|
38
|
+
pageTitle: string | null;
|
|
39
|
+
description: string | null;
|
|
40
|
+
slug: string;
|
|
41
|
+
targetId: string;
|
|
42
|
+
targetType: IkasBlogMetadataTargetType;
|
|
43
|
+
constructor(data?: Partial<IkasBlogMetaData>);
|
|
44
|
+
}
|
|
45
|
+
export declare class IkasBlogCategory {
|
|
46
|
+
id: string;
|
|
47
|
+
createdAt: string;
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
deleted: boolean;
|
|
50
|
+
name: string;
|
|
51
|
+
imageId: string;
|
|
52
|
+
metadata: IkasBlogMetaData | null;
|
|
53
|
+
constructor(data?: Partial<IkasBlogCategory>);
|
|
54
|
+
}
|
|
@@ -7,7 +7,7 @@ export declare class IkasCategory {
|
|
|
7
7
|
metaData?: IkasHTMLMetaData | null;
|
|
8
8
|
image?: IkasImage | null;
|
|
9
9
|
path: IkasCategoryPath[];
|
|
10
|
-
constructor(data
|
|
10
|
+
constructor(data?: Partial<IkasCategory>);
|
|
11
11
|
get href(): string;
|
|
12
12
|
}
|
|
13
13
|
export declare class IkasCategoryPath {
|
|
@@ -29,6 +29,8 @@ export declare enum IkasThemeCustomDataType {
|
|
|
29
29
|
COLOR = "COLOR",
|
|
30
30
|
COMPONENT = "COMPONENT",
|
|
31
31
|
COMPONENT_LIST = "COMPONENT_LIST",
|
|
32
|
+
BLOG = "BLOG",
|
|
33
|
+
BLOG_LIST = "BLOG_LIST",
|
|
32
34
|
OBJECT = "OBJECT",
|
|
33
35
|
STATIC_LIST = "STATIC_LIST",
|
|
34
36
|
DYNAMIC_LIST = "DYNAMIC_LIST"
|
|
@@ -12,3 +12,5 @@ export { IkasCategoryPropValue } from "./page/component/prop-value/category";
|
|
|
12
12
|
export { IkasCategoryListPropValue } from "./page/component/prop-value/category-list";
|
|
13
13
|
export { IkasThemeSettings } from "./settings/index";
|
|
14
14
|
export { IkasThemeCustomData, IkasThemeCustomDataType } from "./custom-data/index";
|
|
15
|
+
export { IkasBlogPropValue } from "./page/component/prop-value/blog";
|
|
16
|
+
export { IkasBlogListPropValue } from "./page/component/prop-value/blog-list";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IkasBlogListType } from "../../../../ui/blog-list/index";
|
|
2
|
+
export declare class IkasBlogListPropValue {
|
|
3
|
+
blogListType: IkasBlogListType;
|
|
4
|
+
initialLimit?: number | null;
|
|
5
|
+
blogIds?: string[] | null;
|
|
6
|
+
categoryId: string | null;
|
|
7
|
+
usePageFilter?: boolean | null;
|
|
8
|
+
constructor(data: Partial<IkasBlogListPropValue>);
|
|
9
|
+
}
|
|
@@ -32,5 +32,8 @@ export declare enum IkasThemePageType {
|
|
|
32
32
|
CART = "CART",
|
|
33
33
|
FAVORITE_PRODUCTS = "FAVORITE_PRODUCTS",
|
|
34
34
|
SEARCH = "SEARCH",
|
|
35
|
-
NOT_FOUND = "NOT_FOUND"
|
|
35
|
+
NOT_FOUND = "NOT_FOUND",
|
|
36
|
+
BLOG = "BLOG",
|
|
37
|
+
BLOG_INDEX = "BLOG_INDEX",
|
|
38
|
+
BLOG_CATEGORY = "BLOG_CATEGORY"
|
|
36
39
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { IkasBlog } from "../../data/blog/index";
|
|
2
|
+
import { IkasBlogListPropValue } from "../../theme/page/component/prop-value/blog-list";
|
|
3
|
+
export declare class IkasBlogList {
|
|
4
|
+
data: IkasBlog[];
|
|
5
|
+
private _type;
|
|
6
|
+
private _limit;
|
|
7
|
+
private _page;
|
|
8
|
+
private _count;
|
|
9
|
+
private _initialized;
|
|
10
|
+
private _minPage?;
|
|
11
|
+
private _blogListPropValue;
|
|
12
|
+
private _filterCategoryId;
|
|
13
|
+
private _isLoading;
|
|
14
|
+
constructor(data: IkasBlogListParams);
|
|
15
|
+
get limit(): number;
|
|
16
|
+
get page(): number;
|
|
17
|
+
get count(): number;
|
|
18
|
+
get isInitialized(): boolean;
|
|
19
|
+
get isStatic(): boolean;
|
|
20
|
+
get hasPrev(): boolean;
|
|
21
|
+
get hasNext(): boolean;
|
|
22
|
+
get isLoading(): boolean;
|
|
23
|
+
private listBlogs;
|
|
24
|
+
private getInitial;
|
|
25
|
+
getPrev: () => Promise<void>;
|
|
26
|
+
getNext: () => Promise<void>;
|
|
27
|
+
getPage: (page: number) => Promise<void>;
|
|
28
|
+
toJSON(): {
|
|
29
|
+
data: IkasBlog[];
|
|
30
|
+
type: IkasBlogListType;
|
|
31
|
+
limit: number;
|
|
32
|
+
page: number;
|
|
33
|
+
count: number;
|
|
34
|
+
initialized: boolean;
|
|
35
|
+
minPage: number | null | undefined;
|
|
36
|
+
blogListPropValue: IkasBlogListPropValue;
|
|
37
|
+
filterCategoryId: string | null;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export declare type IkasBlogListParams = {
|
|
41
|
+
data?: IkasBlog[];
|
|
42
|
+
type?: IkasBlogListType;
|
|
43
|
+
limit?: number;
|
|
44
|
+
page?: number;
|
|
45
|
+
count?: number;
|
|
46
|
+
initialized?: boolean;
|
|
47
|
+
minPage?: number;
|
|
48
|
+
blogListPropValue: IkasBlogListPropValue;
|
|
49
|
+
filterCategoryId: string | null;
|
|
50
|
+
};
|
|
51
|
+
export declare enum IkasBlogListType {
|
|
52
|
+
ALL = "ALL",
|
|
53
|
+
STATIC = "STATIC",
|
|
54
|
+
CATEGORY = "CATEGORY"
|
|
55
|
+
}
|
|
@@ -21,10 +21,12 @@ export declare class IkasBrandList {
|
|
|
21
21
|
get hasPrev(): boolean;
|
|
22
22
|
get hasNext(): boolean;
|
|
23
23
|
get isLoading(): boolean;
|
|
24
|
+
private getSortParams;
|
|
24
25
|
getInitial: () => Promise<void>;
|
|
25
26
|
getPrev: () => Promise<void>;
|
|
26
27
|
getNext: () => Promise<void>;
|
|
27
28
|
getPage: (page: number) => Promise<void>;
|
|
29
|
+
setSortType(sortType: IkasBrandListSortType): Promise<void>;
|
|
28
30
|
toJSON(): {
|
|
29
31
|
data: IkasBrand[];
|
|
30
32
|
type: IkasBrandListType;
|
|
@@ -21,10 +21,12 @@ export declare class IkasCategoryList {
|
|
|
21
21
|
get hasPrev(): boolean;
|
|
22
22
|
get hasNext(): boolean;
|
|
23
23
|
get isLoading(): boolean;
|
|
24
|
+
private getSortParams;
|
|
24
25
|
getInitial: () => Promise<void>;
|
|
25
26
|
getPrev: () => Promise<void>;
|
|
26
27
|
getNext: () => Promise<void>;
|
|
27
28
|
getPage: (page: number) => Promise<void>;
|
|
29
|
+
setSortType(sortType: IkasCategoryListSortType): Promise<void>;
|
|
28
30
|
toJSON(): {
|
|
29
31
|
data: IkasCategory[];
|
|
30
32
|
type: IkasCategoryListType;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./blog-list/index";
|
|
1
2
|
export { IkasBrandList, IkasBrandListType, IkasBrandListSortType, } from "./brand-list/index";
|
|
2
3
|
export { IkasCategoryList, IkasCategoryListType, IkasCategoryListSortType, } from "./category-list/index";
|
|
3
4
|
export type { IkasBrandListParams } from "./brand-list/index";
|
|
@@ -3,9 +3,8 @@ import { NextRouter } from "next/router";
|
|
|
3
3
|
export declare class IkasProductDetail {
|
|
4
4
|
product: IkasProduct;
|
|
5
5
|
selectedVariantValues: IkasVariantValue[];
|
|
6
|
-
private usePageData?;
|
|
7
6
|
private router?;
|
|
8
|
-
constructor(product: IkasProduct, selectedVariantValues: IkasVariantValue[],
|
|
7
|
+
constructor(product: IkasProduct, selectedVariantValues: IkasVariantValue[], router?: NextRouter);
|
|
9
8
|
get mainVariantValue(): IkasVariantValue | undefined;
|
|
10
9
|
get selectedVariant(): import("../../index").IkasProductVariant;
|
|
11
10
|
get href(): string;
|
|
@@ -43,6 +43,7 @@ export declare class IkasProductList {
|
|
|
43
43
|
get filterQueryParams(): string;
|
|
44
44
|
get filterCategories(): IkasFilterCategory[] | undefined;
|
|
45
45
|
get hasAppliedfilter(): boolean | undefined;
|
|
46
|
+
private getSortParams;
|
|
46
47
|
private searchProducts;
|
|
47
48
|
private getFilters;
|
|
48
49
|
private applyQueryParamFilters;
|
|
@@ -53,6 +54,7 @@ export declare class IkasProductList {
|
|
|
53
54
|
getPrev: () => Promise<void>;
|
|
54
55
|
getNext: () => Promise<void>;
|
|
55
56
|
getPage: (page: number) => Promise<void>;
|
|
57
|
+
setSortType(sortType: IkasProductListSortType): Promise<void>;
|
|
56
58
|
onFilterCategoryClick(filterCategory: IkasFilterCategory, disableRoute?: boolean): Promise<void>;
|
|
57
59
|
toJSON(): {
|
|
58
60
|
data: IkasProductDetail[];
|
|
@@ -103,12 +105,10 @@ export declare enum IkasProductListType {
|
|
|
103
105
|
SEARCH = "SEARCH"
|
|
104
106
|
}
|
|
105
107
|
export declare enum IkasProductListSortType {
|
|
106
|
-
MOST_SOLD = "MOST_SOLD",
|
|
107
|
-
FEATURED = "FEATURED",
|
|
108
108
|
INCREASING_PRICE = "INCREASING_PRICE",
|
|
109
109
|
DECREASING_PRICE = "DECREASING_PRICE",
|
|
110
|
-
A_Z = "A_Z",
|
|
111
|
-
Z_A = "Z_A",
|
|
112
110
|
LAST_ADDED = "LAST_ADDED",
|
|
113
|
-
FIRST_ADDED = "FIRST_ADDED"
|
|
111
|
+
FIRST_ADDED = "FIRST_ADDED",
|
|
112
|
+
INCREASING_DISCOUNT = "INCREASING_DISCOUNT",
|
|
113
|
+
DECRASING_DISCOUNT = "DECRASING_DISCOUNT"
|
|
114
114
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { GetStaticPaths, GetStaticProps } from "next";
|
|
4
|
+
import { IkasThemePage } from "../../models/index";
|
|
5
|
+
import { ParsedUrlQuery } from "querystring";
|
|
6
|
+
declare type Props = {
|
|
7
|
+
propValuesStr: string;
|
|
8
|
+
pageSpecificDataStr: string;
|
|
9
|
+
page: IkasThemePage;
|
|
10
|
+
queryParams?: ParsedUrlQuery;
|
|
11
|
+
settingsStr: string;
|
|
12
|
+
merchantSettings: string;
|
|
13
|
+
configJson: Record<string, any>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: React.FunctionComponent<Props>;
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare const getStaticPaths: GetStaticPaths;
|
|
18
|
+
export declare const getStaticProps: GetStaticProps;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { GetStaticProps } from "next";
|
|
3
|
+
import { IkasThemePage } from "../../models/index";
|
|
4
|
+
declare type Props = {
|
|
5
|
+
propValuesStr: string;
|
|
6
|
+
page: IkasThemePage;
|
|
7
|
+
settingsStr: string;
|
|
8
|
+
merchantSettings: string;
|
|
9
|
+
configJson: Record<string, any>;
|
|
10
|
+
};
|
|
11
|
+
declare const Page: React.FC<Props>;
|
|
12
|
+
export default Page;
|
|
13
|
+
export declare const getStaticProps: GetStaticProps;
|
package/build/utils/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { NextRouter } from "next/router";
|
|
2
|
-
import { IkasTheme, IkasThemePageType, IkasThemePageComponent, IkasProductDetail, IkasThemeComponentProp, IkasThemeComponent, IkasProductList, IkasBrandList, IkasBrandListParams, IkasThemePage, IkasImage, IkasCategoryList, IkasBrand, IkasCategory, IkasThemeCustomData, IkasMerchantSettings, IkasThemeSettings, IkasComponentRenderer } from "../../models/index";
|
|
2
|
+
import { IkasTheme, IkasThemePageType, IkasThemePageComponent, IkasProductDetail, IkasThemeComponentProp, IkasThemeComponent, IkasProductList, IkasBrandList, IkasBrandListParams, IkasThemePage, IkasImage, IkasCategoryList, IkasBrand, IkasCategory, IkasThemeCustomData, IkasMerchantSettings, IkasThemeSettings, IkasComponentRenderer, IkasBlogListParams, IkasBlogList } from "../../models/index";
|
|
3
3
|
import { IkasProductListParams } from "../../models/ui/product-list/index";
|
|
4
4
|
import { IkasNavigationLink } from "../../models/ui/navigation-link/index";
|
|
5
5
|
import { IkasCategoryListParams } from "../../models/ui/category-list/index";
|
|
6
6
|
import { CustomDataValue } from "./prop-value/custom";
|
|
7
7
|
import { IkasThemePageSpecification } from "../../models/theme/page/index";
|
|
8
|
+
import { IkasBlog } from "../../models/data/blog/index";
|
|
8
9
|
export declare class IkasPageDataProvider {
|
|
9
10
|
theme: IkasTheme;
|
|
10
11
|
pageType?: IkasThemePageType | null;
|
|
@@ -12,6 +13,7 @@ export declare class IkasPageDataProvider {
|
|
|
12
13
|
pageComponentPropValues: IkasPageComponentPropValue[];
|
|
13
14
|
pageSpecificData?: any | null;
|
|
14
15
|
merchantSettings?: IkasMerchantSettings | null;
|
|
16
|
+
possiblePageTypes?: IkasThemePageType[];
|
|
15
17
|
constructor(theme: IkasTheme, pageParams?: Record<string, any>, pageType?: IkasThemePageType);
|
|
16
18
|
get page(): IkasThemePage | undefined;
|
|
17
19
|
get nextPageData(): {
|
|
@@ -71,6 +73,10 @@ export declare class IkasPageDataProvider {
|
|
|
71
73
|
static _initComponentPropValue(propValue: IkasPageComponentPropValue[], router: NextRouter, settings: IkasThemeSettings, isBrowser?: boolean): IkasComponentRenderer | undefined;
|
|
72
74
|
static initComponentListPropValue(prop: IkasThemeComponentProp, propValue: IkasPageComponentPropValue[], pageComponentPropValue: IkasPageComponentPropValue, router: NextRouter, settings: IkasThemeSettings, isBrowser?: boolean): void;
|
|
73
75
|
static _initComponentListPropValue(propValue: IkasPageComponentPropValue[], router: NextRouter, settings: IkasThemeSettings, isBrowser?: boolean): IkasComponentRenderer[];
|
|
76
|
+
static initBlogPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
77
|
+
static _initBlogPropValue(propValue: IkasBlog): IkasBlog;
|
|
78
|
+
static initBlogListPropValue(prop: IkasThemeComponentProp, propValue: any, pageComponentPropValue: IkasPageComponentPropValue): void;
|
|
79
|
+
static _initBlogListPropValue(propValue: IkasBlogListParams): IkasBlogList;
|
|
74
80
|
}
|
|
75
81
|
export declare class IkasPageComponentPropValue {
|
|
76
82
|
pageComponent: IkasThemePageComponent;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IkasBlog, IkasBrand, IkasCategory, IkasProductDetail } from "../../models/index";
|
|
2
|
+
export declare function getPlaceholderProduct(): IkasProductDetail;
|
|
3
|
+
export declare function getPlaceholderCategory(): IkasCategory;
|
|
4
|
+
export declare function getPlaceholderBrand(): IkasBrand;
|
|
5
|
+
export declare function getPlaceholderBlog(): IkasBlog;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IkasBlogList, IkasBlogListPropValue, IkasThemePageType } from "../../../models/index";
|
|
2
|
+
import IkasPropValueProvider from "./index";
|
|
3
|
+
export declare class IkasBlogListPropValueProvider implements IkasPropValueProvider<IkasBlogList> {
|
|
4
|
+
private pageType;
|
|
5
|
+
private blogListPropValue;
|
|
6
|
+
private pageSpecificData?;
|
|
7
|
+
constructor(pageType: IkasThemePageType, brandListPropValue: IkasBlogListPropValue, pageSpecificData?: any);
|
|
8
|
+
getValue(): Promise<IkasBlogList>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IkasBlog, IkasBlogPropValue } from "../../../models/index";
|
|
2
|
+
import IkasPropValueProvider from "./index";
|
|
3
|
+
export declare class IkasBlogPropValueProvider implements IkasPropValueProvider<IkasBlog | null> {
|
|
4
|
+
private blogPropValue;
|
|
5
|
+
private pageSpecificData?;
|
|
6
|
+
constructor(propValue: IkasBlogPropValue, pageSpecificData?: any);
|
|
7
|
+
getValue(): Promise<IkasBlog | null>;
|
|
8
|
+
}
|
|
@@ -27,6 +27,8 @@ export declare class IkasCustomPropValueProvider implements IkasPropValueProvide
|
|
|
27
27
|
private getObjectValue;
|
|
28
28
|
private getArrayValue;
|
|
29
29
|
private getComponentListValue;
|
|
30
|
+
private getBlogValue;
|
|
31
|
+
private getBlogListValue;
|
|
30
32
|
}
|
|
31
33
|
export declare type CustomDataValue = {
|
|
32
34
|
value: any;
|
|
@@ -3,9 +3,7 @@ import IkasPropValueProvider from "./index";
|
|
|
3
3
|
export declare class IkasProductListPropValueProvider implements IkasPropValueProvider<IkasProductList> {
|
|
4
4
|
private pageType;
|
|
5
5
|
private productListPropValue;
|
|
6
|
-
private pageParams;
|
|
7
6
|
private pageSpecificData?;
|
|
8
|
-
|
|
9
|
-
constructor(pageType: IkasThemePageType, productListPropValue: IkasProductListPropValue, pageParams: Record<string, any>, pageSpecificData?: any, skipInitialFetch?: boolean);
|
|
7
|
+
constructor(pageType: IkasThemePageType, productListPropValue: IkasProductListPropValue, pageSpecificData?: any);
|
|
10
8
|
getValue(): Promise<IkasProductList>;
|
|
11
9
|
}
|
|
@@ -10,7 +10,7 @@ export declare class SettingsHelper {
|
|
|
10
10
|
static readLocalTheme(): Promise<IkasTheme>;
|
|
11
11
|
static readSettingsFile(): Promise<any>;
|
|
12
12
|
static getSettings(locale: string): Promise<SettingsData | null>;
|
|
13
|
-
static getPageData(context: GetStaticPropsContext<ParsedUrlQuery> | GetServerSidePropsContext<ParsedUrlQuery>, isServer: boolean, pageType?: IkasThemePageType): Promise<{
|
|
13
|
+
static getPageData(context: GetStaticPropsContext<ParsedUrlQuery> | GetServerSidePropsContext<ParsedUrlQuery>, isServer: boolean, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[]): Promise<{
|
|
14
14
|
props: {
|
|
15
15
|
propValuesStr: string;
|
|
16
16
|
pageSpecificDataStr: string;
|
|
@@ -57,7 +57,7 @@ export declare class SettingsHelper {
|
|
|
57
57
|
revalidate: number;
|
|
58
58
|
notFound?: undefined;
|
|
59
59
|
}>;
|
|
60
|
-
static getStaticProps(context: GetStaticPropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType): Promise<{
|
|
60
|
+
static getStaticProps(context: GetStaticPropsContext<ParsedUrlQuery>, pageType?: IkasThemePageType, possiblePageTypes?: IkasThemePageType[]): Promise<{
|
|
61
61
|
props: {
|
|
62
62
|
propValuesStr: string;
|
|
63
63
|
pageSpecificDataStr: string;
|